TD height

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

TD height

Post by Ree »

How do I make TD specific height? Whatever I do it stays the same in FF. Seems simple heh.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Try setting the height of the row (TR) instead of the column/cell (TD).
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Post by Ree »

Actually this doesn't help.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Code: Select all

<td style="height:100px">Height is set to 100px</td>
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

setting a height in a row doesn't validate with w3cs HTML validator... but it works in IE :P (haven't tried it in any other browser)

You can set a table cells height to any size you wish using <td height="100">.
This will give you a 100 pixel tall table cell. HOWEVER, if any content inside of that table cell (or other table cells in that row) exceed 100 pixels in height, then your table cell would be stretched larger than 100 pixels. For control over that you could use <td style="height: 100px; overflow: auto;">..... adjusting the overflow as you need.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply