Bin Chen Bin Chen - 1 year ago 70
HTML Question

html: how to make all the DIVs in the center of the page?



How can I make all the DIVs at the center of the webpage?

I mean in the browser.

Answer Source


<div class="center"></div>

CSS: { margin: 0 auto; }

Of course, if you have other things outside of those divs, they might interfere.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download