How to get the header to the top of the page?
Autor: Karl-Heinz S.
Visitado 698,
Seguidores 1,
Compartilhado 0
Hi there,
I can't get the header to the top of the page (X5 Prof12).
I've set all relevant margins to zero (e.g. all margins of the "page background")
and also inserted the following css (recommended somewhere - can't remember where):
<style>
#imSite{margin-top: 0px}
</style>
without success - same with #imHeader and #imHeaderBg.
There is always a small distance of about 10px to the top of the page.
Additionally it is different for all other pages.
For the rest of the pages the distance to the top of the page is about 16px.
I've searched this site and "all the web" without success.
Any idea where to look ?
Regards, KH
Publicado em
Autor
Found the reason:
Because I wantet the menue buttons always to be centered, I entered the recommended CSS to the properties of all pages:
/* Desktop */
<style>
#imMnMn{text-align:center}
#imMnMn > ul{z-index:10001;display:inline-block}
#imMnMn li > ul{z-index:10002}
#imMnMn ul{padding:0;margin:0;list-style-type:none}
#imMnMn > ul{margin-left:0}
</style>
This lead somehow to the effect I described above
Maybe somebody who knows CSS better than me can modify the above CSS so that it has no effect on the positioning of the page.
Regards, KH