View Full Version : 100% width table question
AshleyQuick
05-08-2003, 06:39 PM
Say you have/need 4 tables cells, three of which have fixed widths. The fourth needs to be able to expand because the table is 100%. What do you put for width in that fourth cell? Right now, I have 99% and it seems to work in IE. Will this cause problems in other browsers? Do you recommend a different methodology? Thanks.
<table width="100">
<tr>
<td width="130">blah</td>
<td width="55">blah</td>
<td width="99%">blah</td>
<td width="150">blah</td>
</tr>
</table>
chrismiceli
05-08-2003, 10:55 PM
you can do many things here, that code should work on most browsers, but why not use percents? Javascript could do this too.
zoobie
05-08-2003, 10:56 PM
Try using percentages for all cells...totaling 100%
Spookster
05-08-2003, 11:19 PM
or switch to a css layout. :D
Here is a great site for example layouts like what you are wanting to do but using CSS instead of tables:
http://glish.com/css/
zoobie
05-09-2003, 03:57 AM
Well, I think you have to run javascripts to make the css cross-browser...
Spookster
05-09-2003, 04:56 AM
Originally posted by zoobie
Well, I think you have to run javascripts to make the css cross-browser...
Why do you need to use javascript to make the css crossbrowser?
zoobie
05-09-2003, 05:17 AM
Dunno really...I just saw it posted in here recently. It was probably pertaining to the NS4 clunker. I remember checking out css layouts and they had to have several workarounds to get certain things to display properly. For me, it's tables...and by just using <br>, you can cut waaaaaaay down on the coding...with no cross-browser problems. I remember NS4 could only handle like 3 nested tables...I just came from a site which had like 25...:eek:
barnettgs
05-19-2003, 06:05 PM
There has been a big fuss about using CSS over tables?! :confused:
I can't see the point of taking up so much time of working on css for layout when it only takes few minutes laying out a table!
Spook
05-19-2003, 06:25 PM
Well for one thing with CSS you can position your content first so the search engine spiders don't have to trawl through all of the other "structural coding"!
Spook
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.