Please take a look at this html code. I want to have two columns of equal width. For some strange reason, if there is no content between the td tags, then the two column widths is equal. Once I have content between the td tags, thats when one of the columns width is always more than the other. I mean the content is different in both the columns. Lets just say, one of the them has the content and the other does not. The one which has the content is invariably larger than the other. How can I make the two columns equal irrespective of the content? I have tried setting the width="" on both the td tags, but it doesn't seem to make any difference. I am banging my head against the wall as to why I am not able to get the same width columns. Anybody has any ideas? Thank you guys!
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
So you are saying that setting width="50%" has no effect?
Joined: Sep 24, 2004
Thank you Bear. I did fix the code to be UBB code specific. Yes, the size of 50% or 236 in the td tag does not matter if there is content between the tags. It looks like it is dependent on the content since if I leave both the columns blank, the size is the same. If there is content which is remarkably different in the two columns, then the size of the columns also is different for some reason. How do I fix that? Thanks.
Perhaps you could post a complete example that demonstrates the issue?
Joined: Sep 24, 2004
Unfortunately, I will not be able to post the entire code because it is proprietary and it is huge. I noticed it depends on the length of the text I type. The longer the length, the wider the column. For instance,
In the above code, the second column is invariably larger than the first one. Is there someways I can eliminate that dependency and have two columns of equal width irrespective of the text I have between them? Thanks.
[ April 30, 2008: Message edited by: Nina Binde ] [ April 30, 2008: Message edited by: Nina Binde ]