How to center absolute positioned element

Naturally an element with absolute positioning tends to be align to the left. To make that element float in the center horizontally use the following code:

#elem {
position: absolute; left: 0; right:0;
}

Unfortunately this does not work in EI6-7

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>