fixed and dyamic collum sizing in same table
I want the left and right collums to be a set size and the middle
collum to vary depending upon the size of the users browser window.
both of the following ways works in ie5 but not in
opera 6.
How do I implement this in browsers other than ie5?
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<!--
<col width="150px"><col><col width="150px">
-->
<col width="150px"><col width="*%"><col width="150px">
Andy Kohlenberg
Jerusalem, Israel
Jack Michaelson posted this at 09:43 — 13th February 2002.
He has: 1,733 posts
Joined: Dec 1999
That's the first time I see the tag, maybe Opera doesn't like it. I define cols with 's the first in the table.
akohl posted this at 10:34 — 13th February 2002.
They have: 117 posts
Joined: Feb 2001
That works fine in opera.
Thanks!
detox posted this at 13:27 — 13th February 2002.
They have: 571 posts
Joined: Feb 2001
akohl
Can I ask why you were using col tags? I have never seen it used before either
mairving posted this at 13:55 — 13th February 2002.
They have: 2,256 posts
Joined: Feb 2001
tags are only supported by IE and are used with colgroup. Something like so:
<?php
<TABLE>
<COLGROUP>
<COL width=\"30\">
<COLGROUP>
<COL width=\"30\">
<COL width=\"0*\">
<COL width=\"2*\">
<COLGROUP align=\"center\">
<COL width=\"1*\">
<COL width=\"3*\" align=\"char\" char=\":\">
<THEAD>
<TR><TD> ...
...rows...
</TABLE>
?>
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Busy posted this at 21:41 — 13th February 2002.
He has: 6,151 posts
Joined: May 2001
the col tag was introduced with the iframe tag (both a waste of bandwidth)
blah
stretchs
blah
dont even need thead or tbody, these tags were introduced but no one caught onto them, its mostly only WYSIWYG editors that add them into your code.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.