dude9er
27 Dec 2006, 02:13 PM
I have three columns. I want to make the middle column flexible/stretchable using CSS based on content of a row. IE is rendering this stupid, FF is fine of course.
Here is a bit of code to view the content of each cell:
<td width="278" height="180" name="1"><img src="t2hdrimgL.jpg" width="278" height="180" name="2"></td>
<!--this is the cell I want flexible-->
<td width="1%" class="flex"> </td>
<td align="right" name="3"><img src="t2logo.jpg" width="487" height="180"></td>
Here is the CSS for this cell:
.flex {
background-image: url(flexBG.jpg);
background-repeat: repeat-x;
background-position: right;
width: 100%;
}
When this CSS is inserted, the width stretches as long as the flexBG.jpg image resulting in major bottom scroll in IE.
What I want:
Cell "name 1" to be width="278px" image "align=default"
Cell "name 2" to be flexible with a background image "valign=right"
Cell "name 3" to be width="487" image "valign=right"
Can anyone please help make this middle column flexible and adjust itself using CSS?
Thanks in advance.
Here is a bit of code to view the content of each cell:
<td width="278" height="180" name="1"><img src="t2hdrimgL.jpg" width="278" height="180" name="2"></td>
<!--this is the cell I want flexible-->
<td width="1%" class="flex"> </td>
<td align="right" name="3"><img src="t2logo.jpg" width="487" height="180"></td>
Here is the CSS for this cell:
.flex {
background-image: url(flexBG.jpg);
background-repeat: repeat-x;
background-position: right;
width: 100%;
}
When this CSS is inserted, the width stretches as long as the flexBG.jpg image resulting in major bottom scroll in IE.
What I want:
Cell "name 1" to be width="278px" image "align=default"
Cell "name 2" to be flexible with a background image "valign=right"
Cell "name 3" to be width="487" image "valign=right"
Can anyone please help make this middle column flexible and adjust itself using CSS?
Thanks in advance.