Posicionamiento CSS de Internet Explorer frente a la posición del menú de Chrome / Firefox / Safari. Haciendo mi cabeza en

Por favor, eche un vistazo a http://bestofyoutube.com. Anyone who knows what I am doing wrong here?

Seems like the IE (version 7+8) put the menu a lot further down then what Safari/Chrome/Firefox do. The little pic I have to the right when people log is also completely thrown out of the normal standard in Internet Explorer (The others worked fine).

Screen shot on IE:

enter image description here

Appreciate any help I can get. Thanks!

preguntado el 08 de noviembre de 11 a las 14:11

You could make a conditional stylesheet and increase the height for just IE. But that's a last-resort solution for me. -

The conditional stylesheet idea is a good one, but without knowing what your actual CSS is it's hard to give a definitive answer. -

2 Respuestas

Interesting bug in IE. To be quickly fixed you need to add in your stylesheet.css este código:

body {
    margin-top:0;
    padding-top:8px;
}

In good to iterate over the options with top padding, removing it from the body.

respondido 08 nov., 11:18

Thank you so much! This works beautifully when I have it on the development server, then when I upload it to the web server it's a completely different result and back to square one again?!? Strange.. any ideas - Marcus Silverman

Shift + refresh (sometimes twice) to ensure you bypass browser cache and see latest version of all files. If that fails try renaming css file and edit code that loads css to match new name. - Dean Marshall

Thanks for help, but still the same problem unfortunately - Marcus Silverman

Try to remove all spaces and line breaks before <!doctype> - Nick Sadovnikov

I think IE tries to draw invisible borders for your menu table. Try to disable borders for this table. And don't forget about table cells padding/margin.

respondido 08 nov., 11:18

Thanks, I think I might have to do a conditional stylesheet just as you mention. - Marcus Silverman

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.