Welcome to WebmasterWorld Guest from 54.162.121.80

Forum Moderators: open

Message Too Old, No Replies

changing doctype to xhtml

but it causes my css not to work properly

     
3:32 pm on Sep 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 28, 2003
posts:869
votes: 0


This is the problematic line:

<?xml version="1.0" encoding="iso-8859-1"?>

If I take it out, my css positions stuff nicely - if I leave it in, my centered page displays left aligned in all versions of IE. Moz seems to be fine either way.

Do I need this line (I'm guessing what the answer to this will be ;)) and if so, can anyone shed any light on the problem?

3:36 pm on Sept 17, 2004 (gmt 0)

Senior Member from ES 

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 11, 2003
posts:1381
votes: 0


Sticking that line in causes IE to act in "Quirks Mode".

It's not necessary.

Details [google.com].

8:53 am on Sept 19, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 28, 2003
posts:869
votes: 0


That's excellent news, thanks :)

I was worried I might have to take my css back to the drawing board (again).