Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 12-18-2006, 07:01 AM Table Problems
cbeaudin's Avatar
Extreme Talker

Posts: 158
Name: cbeaudin
Location: Proud to be Canadian
Trades: 1
I am having a table problem, basically setting sizes, its hard to explain without a diagram lol, here is a very basic version of the code.

HTML Code:
<table width=100>
<tr>
<td hight=20>Cell 1</td>
<td rowspan=2>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
</tr>
</table>
The goal is to have cell 2 as any hight (will expand depending on the text in that cell). I also need cell 3 to be the only cell that changes hight with it. That probably sounds complicated without being able to see it.

Cell 1 needs to be the same hight no matter what. but if i add alot of information to cell 2 (on the right) it expands both the other cells.. I also cannot set the hight in cell three because the information will change in cell 2 using php. Can anyone help?
cbeaudin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-18-2006, 08:59 AM Re: Table Problems
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
you need to have2 different tables if you're going to do it with tables... you should start using css instead of tables though but for your table answer

HTML Code:
<html>
<body>
<table>
<tr>
<td> cell1 </td>
</tr>
</table>
<table>
<tr>
<td> cell 2 </td>
<td> cell 3 </td>
</tr>
</table>
</body>
</html>
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-18-2006, 11:53 AM Re: Table Problems
Skilled Talker

Posts: 68
Trades: 0
Quote:
Originally Posted by cbeaudin View Post
I am having a table problem, basically setting sizes, its hard to explain without a diagram lol, here is a very basic version of the code.

HTML Code:
<table width=100>
<tr>
<td hight=20>Cell 1</td>
<td rowspan=2>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
</tr>
</table>
The goal is to have cell 2 as any hight (will expand depending on the text in that cell). I also need cell 3 to be the only cell that changes hight with it. That probably sounds complicated without being able to see it.

Cell 1 needs to be the same hight no matter what. but if i add alot of information to cell 2 (on the right) it expands both the other cells.. I also cannot set the hight in cell three because the information will change in cell 2 using php. Can anyone help?
Hmmm, try editting your site with Dreamweaver, if you want to edit the height, use CSS
parusa619 is offline
Reply With Quote
View Public Profile Visit parusa619's homepage!
 
Old 12-18-2006, 12:26 PM Re: Table Problems
theblt's Avatar
Super Talker

Posts: 119
Trades: 0
Well if you're going for a table instead of using CSS, your solution does work (if I read your description right). The only problem with it was you spelled height wrong.

Code:
<table width="500" border="1">
<tr>
<td height="50" width="100">Cell 1</td>
<td rowspan="2">
	Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus tellus enim, convallis sit amet, posuere vehicula, lobortis ac, quam. Suspendisse ipsum. Quisque ipsum. Proin est mauris, imperdiet vitae, tempor consequat, vestibulum in, lorem. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Sed iaculis massa in eros. Praesent a neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus ultricies pellentesque lectus. Proin imperdiet ornare neque. Pellentesque ac elit ut nisi placerat commodo. Integer tristique, turpis a pharetra nonummy, lorem purus facilisis dolor, vitae pulvinar odio nulla ut erat. Aliquam dictum tortor id augue. Mauris pede.
</td>
</tr>
<tr>
<td>Cell 3</td>
</tr>
</table>
theblt is offline
Reply With Quote
View Public Profile Visit theblt's homepage!
 
Old 12-19-2006, 12:21 AM Re: Table Problems
cbeaudin's Avatar
Extreme Talker

Posts: 158
Name: cbeaudin
Location: Proud to be Canadian
Trades: 1
Okay so i have taken the advice of blackhawkpowers and put the information into two seperate tables and floated them to the left. This is working alot better than it was before, Thank you for the advice.

Now however i am having a very slight problem with the floating.

I am at work right now so i cannot upload the files to show you, but hopefully you know what im talking about, and i will get it online within 3 or 4 hours.

When i float the two tables together, even though i set the margins to 0, it still leaves a slight space between the two tables which causes a problem as it is a graphic intensive website. The main logo (which is sliced into both tables) has a line through it of about 1px as the background color. Is there any way to fix that or is that as close as i will get the two tables?

Thanks for your time.
cbeaudin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Table Problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28742 seconds with 12 queries