Forum Moderators: open

Message Too Old, No Replies

My <th>s are stacking!

Switched to XHTML and having problems!

         

Warboss Alex

12:47 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



Hey everyone ..

I've just changed the doctype of my pages to XHTML without too much trouble.. except when I came to my tables!

<td>s are rendering fine, but in every browser (Opera, Firefox, Netscape 7) except IE all the <th> tags are stacking on top of each other, instead of being on one horizontal line!

What's gone wrong?

Their only CSS is:
th { background-image:url(thback.gif'); font-weight:bold; width:auto; padding:3px; text-align:center; font-size:11px; }

Help!

Warboss Alex

12:50 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



Erm, never mind, fixed it. I had a display:block for some other element beforehand, which was styled as a th, so, uhh .. hehe. Sorry.

tedster

2:28 pm on Aug 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the details - might help someone in a similar situation.