Skip to content Skip to sidebar Skip to footer

Internet Explorer Wrong Margin, Others Good

I got a tiny problem. First time I am doing a UL menu with an arrow poping on the right... without JS. I got a small problem. In Internet Explorer... IE show a margin in #subMenu u

Solution 1:

You need to specify a doctype as the first line in your markup. Without a doctype, IE will render in quirks mode, which is essentially the IE 5.5 rendering engine. Quirks mode greatly effects the box model, among other things.

Example:

<!doctype html>

Specifying the doctype will yield the correct result in your screenshot.

Post a Comment for "Internet Explorer Wrong Margin, Others Good"