tips on everything. share, find, keep.
login | register | blog | about
    

Tip

Centering a block without using HTML <center> tag

To align a block to the center of the containing block you can set both 'margin-left' and 'margin-right' properties of the block to 'auto'.

The width of the internal block should of course be smaller than the parent's.

posted on 2006-04-14 by sasha | comment | save

tags: web, html, css

Add comment