DelphiFAQ Home Search:

W3C HTML validator complains about setting a table row height

 

comments2 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.

Question:

My HTML code contains table rows defined like this:
<tr height=5>
and the W3C's validator at http://validator.w3.org/ complains that this attribute is not
valid according to 'HTML 4.01 Transitional'.
What can I do?

Answer:

: Specify the row's height as part of the style attribute - like this:
<tr style='height:"5px"'>



Comments:

2009-03-17, 06:08:19
info@sanyoinc.com from Delhi, India  
rating
Is there any way in which we could specify the height in Percentage (%) and also make it valid through W3C??
2009-03-29, 11:29:29
kaman from Pakistan  
rating
thanks alot it works


Keywords:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: