Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Valid code for height of tr tag 1

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
0
0
US
I am trying to use the valid way of increasing the height of a row in a table (not all rows just one particular row).

I can get it to work with:

<tr height="30px">

But that is apparently not valid. The suggested way is:

<tr style="height:30px">

But that doesn't seem to do anything. I also tried putting it in the td tag with the same non results.

So how are you supposed to do it when the invalid way works and the valid way doesn't?

Thanks,

Tom
 
Hi

The first one is invalid, as the [tt]tr[/tt] tag has no [tt]height[/tt] attribute and even if it would have, the value should be specified as 30 ( without unit ).

The second one is valid and works for me in Gecko, Presto and WebKit.

Please give us more details about the context in which it not works.


Feherke.
 
New Posttshad said:
So how are you supposed to do it when the invalid way works and the valid way doesn't?

Use a Document Type Declaration (DTD) that it is valid in!

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Actually, the style did work.

The problem seems to have been some sort of caching.

As I was making the changes and I ran the page again (right away), nothing changed. If I waited a few minutes (while I got someone else to look at it), it then worked.

I need to refresh the page, I guess, to see the changes.

Thanks,

Tom
 
use Ctrl+F5 to force a refresh from the server.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Just a refresh won't do it?

Thanks,

Tom
 
Not necessarily, a browser refresh or pressing F5 is a 'soft' reload and only checks the browser cache for 'expired' files.

Ctrl+F5 is a 'hard' refresh or reload where the cache for that URI is bypassed and ALL files are requested from the URI.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top