Home › Forums › CSS › Alignment in IE › Re: Alignment in IE
March 9, 2012 at 4:53 am
#98576
Participant
This is what i use very often:
And with the css to align the container in the middle:
#container {
width: 970px;
margin: 0px auto;
}
If your div, which you want to center, has no width, it’s almost impossible to align it in the middle of the screen. This is a good way to center your div. For the div’s (header, section, footer) inside the wrapper, just use float.
Hope this is helpfull to you.