Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

Help Me/Question Html table cells with same height.

Discussion in 'HTML Coding' started by mkdocs, Jun 21, 2008.

Thread Status:
Not open for further replies.
  1. mkdocs

    White Belt

    Joined:
    Jun 21, 2008
    Messages:
    7
    Ratings:
    +0 / -0
    <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%" valign="top">
    <h2 style="border-right: 0;">Board Stats</h2>

    <div class="box" width="100%" style="border-right: 0;">
    Total Users: <strong>1</strong><br />
    Total Topics: <strong>2</strong><br />
    Total Posts: <strong>2</strong><br />
    Newest Member: <strong><a href="profile.php?id=2">Mike</a>

    </div></td><td width="50%" valign="top">
    <h2 style="border-left: 0;">Users Online (
    1 Users and 1 Guests)</h2>
    <div class="box" style="border-left: 1px #838383 solid;;"><a href="profile.php?id=2">Mike</a>, </div>
    </td>
    </tr></table>

    How can I make the cells have the same height? plz help me urgently i have to finish it within 2 days....
    thanks

    play war games Girly Myspace Layouts
     
    #1 mkdocs, Jun 21, 2008 at 12:41 PM
    Last edited: Jun 21, 2008
  2. Zoli

    Yellow Belt

    Joined:
    May 22, 2007
    Messages:
    20
    Ratings:
    +2 / -0
    I always try to avoid the use of tables but if I were you I would try with adding this style property:
    Code:
    Select All
    table tr{ height:100px}
     
  3. trinitybrown

    Banned

    Joined:
    Oct 23, 2008
    Messages:
    8
    Ratings:
    +0 / -0
    do one thing usev dreamweaver as editor go to design part , design table of your choice and you will ultimately get its code written automatically in the code section


     
    #3 trinitybrown, Oct 25, 2008 at 6:53 AM
    Last edited by a moderator: Oct 26, 2008
  4. Alfredwinston

    Yellow Belt

    Joined:
    Oct 21, 2009
    Messages:
    16
    Ratings:
    +0 / -0
    I never use tables. And I suggest you to use CSS instead. That is more flexible and easy in designing. If you master CSS you can easily design pages and position the elements where you wish
     
  5. seena

    White Belt

    Joined:
    Nov 2, 2009
    Messages:
    2
    Ratings:
    +0 / -0
    <table width="100%" height="16%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%" valign="top">
    <h2 style="border-right: 0;">Board Stats</h2>

    <div class="box" width="100%" style="border-right: 0;">
    Total Users: <strong>1</strong><br />
    Total Topics: <strong>2</strong><br />
    Total Posts: <strong>2</strong><br />
    Newest Member: <strong><a href="profile.php?id=2">Mike</a>

    </div></td><td width="50%" valign="top">
    <h2 style="border-left: 0;">Users Online (
    1 Users and 1 Guests)</h2>
    <div class="box" style="border-left: 1px #838383 solid;;"><a href="profile.php?id=2">Mike</a>, </div>
    </td>
    </tr></table>

    see it i had set height as 16%
     
  6. webcs

    webcs Guest

    Ratings:
    +0 / -0
    If you want a specific height you can't use percentages. You need to use pixels. If you want to use percentages, then try restraining the table INSIDE of another table with set dimensions, that way the inner table can vary using your percentages but the outer table will not vary.
     
  7. webniche

    White Belt

    Joined:
    Dec 11, 2009
    Messages:
    6
    Ratings:
    +0 / -0
    CSS is the answer! but you can specify height in tr's & td's with height=80 .... etc,,,
     
  8. aryans77

    White Belt

    Joined:
    Oct 11, 2010
    Messages:
    12
    Ratings:
    +0 / -0
    Use CSS instead for tables.....
     
  9. sagajagads

    Banned

    Joined:
    Jun 4, 2011
    Messages:
    7
    Ratings:
    +0 / -0
    you can either use css or apply height at row level
     
Thread Status:
Not open for further replies.

Share This Page