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

XHTML Declaration not using td width in CSS

Status
Not open for further replies.

TestingXSD

Programmer
Mar 24, 2002
11
US
I have a strange one here. I have a page that I have been using for awhile now. Our boss wants us to change or stuff to be XHTML. (We all have a Boss like this, he read an article) The problem is that when I add the XHTML declaration to the top of the page the width on the td tag of a table does not appear to work. When I remove the declaration it looks like I expect.

declaration is this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html lang="en">


The CSS is in a linked file and looks like this:

td.news_accent
{
width:205;
background:#E4E4E4;
}
td.news_mainsection
{
width:345;
}

The color appears in both ways, but the width does not seem to work in XHTML. Any ideas? Is this an IE bug? Is it XHTML? Help!
 

You imply that migrating to XHTML is a bad thing! It's a good thing!! I'm sure you'll find this to be true one day :)

Jeff

 

Foamy... how could I say that about you?! Nah.. I was just following on from whole Boss comment that the OP mentioned.

*sigh* Roll on 5.30p!

Jeff

 
Thanks guys. About the Boss comment I meant that he rushes us into these things for no good reason other than he read an article and now wants the latest shiney thing without thinking why.

Thanks again, I will be more careful.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top