| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|changing doctype to xhtml|
but it causes my css not to work properly
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?
Sticking that line in causes IE to act in "Quirks Mode".
It's not necessary.
That's excellent news, thanks :)
I was worried I might have to take my css back to the drawing board (again).
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved