J
Julien
Hello,
I have a menu in css with position absolute, i have put auto for margin
right and left and put it un a global div but my menu stay on the left.
Could someone help me ?
Here is the partial CSS code :
body {
background-color: #000000;
background-image: url(images/top.png);
background-repeat: no-repeat;
background-position: top center;
text-align: center;
margin: 0;
#global {
position: relative;
margin-left: auto;
margin-right: auto;
width: 1024px;
text-align: left;
}
#menu {
position: absolute;
top: 251px;
width: 743px;
right: auto;
left: auto;
}
And here is the partial html code :
<div id="global"> <a name="haut" id="haut"></a>
<div id="menu">
(...)
</div>
I have a menu in css with position absolute, i have put auto for margin
right and left and put it un a global div but my menu stay on the left.
Could someone help me ?
Here is the partial CSS code :
body {
background-color: #000000;
background-image: url(images/top.png);
background-repeat: no-repeat;
background-position: top center;
text-align: center;
margin: 0;
#global {
position: relative;
margin-left: auto;
margin-right: auto;
width: 1024px;
text-align: left;
}
#menu {
position: absolute;
top: 251px;
width: 743px;
right: auto;
left: auto;
}
And here is the partial html code :
<div id="global"> <a name="haut" id="haut"></a>
<div id="menu">
(...)
</div>