Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation stop the td from stretching

    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
    my dream computer:
    sony viao

  • #2
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    too may width=

    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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •