FireFox <td> height

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

FireFox <td> height

Post by icesolid »

I am just wondering why in all other browsers (Chrome, Opera, Safari, IE8 ), using the code below will set a <td> height, but in FireFox it ignores it?

Code: Select all

<td style="height: 35px;">TABLE CELL</td>
gregor171
Forum Newbie
Posts: 22
Joined: Thu Apr 16, 2009 5:09 pm
Location: Ljubljana, Slovenia

Re: FireFox <td> height

Post by gregor171 »

I'd say that this is problem of code viewer. Sometimes you don't see what you send. Change or try other page preview plugin.

else:
small letters are more common now w3c way: http://www.w3.org/TR/xhtml1/.

<td> is now offten replaced with <div> element
;-)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: FireFox <td> height

Post by pickle »

Try the "line-height" property.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: FireFox <td> height

Post by icesolid »

line-height: 35px worked

As always, thanks for the help.

P.S. Are all of these browser companies going to let their egos down one day and just all comply through one strict format that all follows the same? I hope so, what a waste of time standard/compliance has been over the years. I would just like to write the code and know it will work on all browsers.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: FireFox <td> height

Post by pickle »

I don't think it's ego so much (well, maybe it is in the case of IE), but rather laziness. The standard has been written - it's just a matter of the different companies not getting around to implementing the standard properly.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply