CSS3 Questions and Answers

How do you manage the complete site in center of the browser, which is completely using divs using the help of css2 or css3?

In CSS file

1. body{width:100%;}

2. Create a div tag and assign a class, say ‘container’ and place all your content in this div tag.

3. Assign properties to this class in CSS file

container{width:777px; margin:auto;}

Note: “margin:auto” will place your page in center of the page.