Home › Forums › CSS › help with css › Re: help with css
July 18, 2013 at 3:30 am
#143473
Participant
To put it simple, `margin: 0 auto` have no effect on absolute/fixed elements. To center such an element, you can do this:
.element {
width: 800px;
position: fixed;
left: 50%;
margin-left: -400px; // minus half the width
}