/ Published in: CSS

Taken from bluerobot. Create a content div, set the width and the margin set to auto will align the div to the centre horizontally.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
body { margin:50px 0px; padding:0px; text-align:center; } #Content { width:500px; margin:0px auto; text-align:left; padding:15px; }
Comments
