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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the tag: "td" doesn't have an attribute: "height" in current 1

Status
Not open for further replies.

pomuz

Technical User
Mar 23, 2007
8
CA

the tag: "td" doesn't have an attribute: "height" in currently active versions.[XHTML 1.0 strict]

Hello, after getting the above error, I did some research, and I realize that The "bgcolor", "height", "width", and "nowrap" attributes of the td element are not supported in XHTML 1.0 Strict DTD.

However, what if you need to make the row of a certain table larger than the others. Ex: <td height="27">. This code generates an error. Is there a different way of getting the same result?

Thank you.

 
I'm not the greatest with html, but I suggest you try...

<td style="height:27px;">

Basically, many of the properties for the td tag have been moved in to the style property.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Thank you so much gmmastros. The other error is
<tr bgcolor="#CCCCCC">. Is there a way around this?

Also, can you reccommend a good tutorial for this? Thank you!

 
Code:
<td style="height:27px;background-color:#cccccc;">

Again, not the greatest way to do it but it will work and is valid.

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Thank you boys!!! :) Have an awesome weekend!

Just let me know if you are aware of any good free tutorials.
 
We are. As of late, we mentioned them here: thread215-1349024
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top