...

View Full Version : stop the td from stretching



brass fish
10-18-2002, 03:56 AM
hey, im trying to make 2 table cells that stay the same width and 1 table cell that stretches so it fits in different sized browser windows.but when i tested it out every cell moved. heres the page
http://webjunk.coolfreepage.com/example.html

any help is appreciated :)

Col.html
10-18-2002, 01:28 PM
By using 2 exact values in your bottom 2 cells that add up to a given value, you are setting a ratio of width of the first to that of the second. In this case the ratio is 525:125 I think, but you have a lot of stuff in there. Let the area you want to be free to expand/contract be unspecifyied, only specifying the one width that you want to constrain. Here is your modifyied code:

<HTML><HEAD><TITLE>title</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<!-- TEMPLATE 4 -->
<STYLE type=text/css>A:active {
COLOR: #990000; TEXT-DECORATION: none
}
A:visited {
COLOR: #990000; TEXT-DECORATION: none
}
A:link {
COLOR: #990000; TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
UNKNOWN {
COLOR: black; BACKGROUND-COLOR: white; text: "times new roman",arial; put:
}
.title {
FONT-SIZE: 42pt; COLOR: red; TEXT-ALIGN: right
}
</STYLE>

<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><SPAN class=title>title</SPAN></TD></TR>
<TR>
<TD background=title_files/topbar.gif colSpan=3
height=1></TD></TR>
<TR>
<TD colSpan=2 height=10></TD>
<P align=right>
<TD align=left width=125 rowSpan=3><IMG src="title_files/bar.gif"
align=left> <A href="http://webjunk.coolfreepage.com/3">links</A><BR><A
href="http://webjunk.coolfreepage.com/3">links</A><BR><A
href="http://webjunk.coolfreepage.com/3">links</A><BR><A
href="http://webjunk.coolfreepage.com/3">links</A><BR><A
href="http://webjunk.coolfreepage.com/3">links</A><BR><A
href="http://webjunk.coolfreepage.com/3">links</A> </TD></P></TR>
<TR>
<TD></TD>
<TD vAlign=top>text text text text text text text text text text
text text text text
</TD></TR></TBODY></TABLE>

<!-- TEMPLATE 4 --></BODY></HTML>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum