Help Me/Question Html table cells with same height.

Status
Not open for further replies.

mkdocs

White Belt
<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
 
Last edited:

Zoli

Yellow Belt
I always try to avoid the use of tables but if I were you I would try with adding this style property:
Code:
table tr{
height:100px}
 
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


 
Last edited by a moderator:

Alfredwinston

Yellow Belt
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
 

seena

White Belt
<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%
 
W

webcs

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.
 
Status
Not open for further replies.
Top