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 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question columns wont come out right...

    <table border="1" align="center" valign="top" width="700" height="500" rows="1" cols="5">
    <td align="left" valign="top" colspan="1">
    Menu
    </td>
    <td align="left" valign="top" colspan="4">
    Main text
    </td>
    </table>

    one on the left is supposed to be only 1/5 size of the table and the one on the right is supposed to be 4/5 of it.


    dont do it for me. just write what i did wrong.
    Because no one cares.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    A table doesn't have a cols or rows attribute. A table also doesn't have a height attribute, use style="height:500px;" instead. If one td is to be 1/5 of 700 then set its width to 140px, if the other td is to be 4/5 then set its width to 560px;. Personally I wouldn't even use a table for this. Tables aren't meant for web design, they are meant to display data. Your layout can be done without tables, here is an example. http://bonrouge.com/2c-hf-fixed.php

  • #3
    New Coder
    Join Date
    Oct 2005
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs down thnx

    ok thnx aerospace er whatever ur name is, that was much more helpful then ur other post. ill c if i can fix it
    Because no one cares.

  • #4
    New Coder
    Join Date
    Oct 2005
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation great

    Great! thank you. that helps a lot. i fixed it.

    I tried to learn that other thing the div or whatever.. but i dont have the patience to understand it. Maybe someday. but for now i like tables. they work just as good and i personally think they are easier to understand.
    Because no one cares.


  •  

    Posting Permissions

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