|
Main page
FAQ Biography Contact Essays Zany stuff Best blog articles Technical articles Blog archives Advertisements Blogroll
USS Clueless
Mises Economics Blog The Usurer Gweilo Diaries FuturePundit EconoPundit Asymmetrical Information The Angry Economist Non-blog sites (coming soon) Friends (coming soon) | ||
|
Posted 2003-10-04 23:00:46 UTC
(permalink)
Not A Bug :)I figured out bug #4 from this post. It was my own fault. The spec says that the default value of 'width' is 'auto'. This causes the margins to be set to zero:
So if you want to center a block element, you also need to set the 'width' to something other than 'auto':
Lookie here, a centered block element with a width 25% of its parent's!
I can't find any way to center an image (IMG isn't a block element) other than wrapping it in a block element (such as DIV) and specifying the width in the DIV.
© 2003 Kyle Markley
(permalink)
| ||