April 15, 2008 - Rajesh Odayanchal

Centre aligning a block element

you wanted to have a fixed width layout website, and the content floated in the middle of the screen. You can use the following CSS command.
#content
{
width: 700px;
margin: 0 auto;
}

css / css3 / help css / help / tutorial /

Leave a Reply

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