Margins in IE not working

liunx

Guest
I know theres an html>body hack for IE to get it to work but I don't know how to impliment it. <!-- m --><a class="postlink" href="http://free.angeltowns.com/frozendice/index.html#">http://free.angeltowns.com/frozendice/index.html#</a><!-- m -->

Could someone help me with the code?!Srry *bump* why is this not working in IE?Try putting a valid doctype on it so the browsers will come out of quirks mode. In fact making it proper HTML all around would probably help.What doctype should I use?

Edit: Is loose.dtd right? It still doesn't display in IE correctly. I also added the head, body, html tags on.Hi -
You might give this a read:

<!-- m --><a class="postlink" href="http://glish.com/css/hacks.asp">http://glish.com/css/hacks.asp</a><!-- m -->

[Also, please fix spelling errors...]

Good luck,
ElOriginally posted by FrozenDice
What doctype should I use?

Edit: Is loose.dtd right? It still dosn't display in IE correctly. I also added the head, body, html tags on.
I always use strict: seems to get IE to almost work same as Firefox most of the time:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">Originally posted by FrozenDice
What doctype should I use?

Edit: Is loose.dtd right? It still dosn't display in IE correctly. I also added the head, body, html tags on.

give <!-- m --><a class="postlink" href="http://www.alistapart.com/articles/doctype/">http://www.alistapart.com/articles/doctype/</a><!-- m --> a read. It helped me :)Originally posted by NogDog
I always use strict: seems to get IE to almost work same as Firefox most of the time:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Your experience may be wishfull thinking. I ran into a thread on this site a while back that proved simply putting, and I quote: "<DOCTYPE>" at the beginning of an HTML document is enough to put IE6 into Standards Mode :p

Try it out for yourself. Use a strict doctype if you want ALL of your visual styling to go in CSS files. Use a transitional doctype if you have a lot of older published content and still want to use now depricated HTML attributes like bgcolor, align, etc.

XHTML is trendy, but there's no harm in using HTML 4.01 if you don't plan on serving your pages with the content-type application/xml+xhtml. (In the file header for the HTML document, not in a <meta /> tag in the <head> of the HTML document.)
 
Back
Top