Unlike on non-replaced elements, the box model properties do affect the height of the line box when applied to replaced elements.
T The image, and hence the whole of the line box, should have a 50 pixel vertical margin.
This image simply has a 20 pixel horizontal margin.
This image simply has a 20 pixel horizontal padding.
The image should have 100 px of red padding. The padding will affect the height of the whole line box, but only the bit around the image will be red.
Copyright © RichInStyle.com 2000; all rights reserved. See copyright document for terms of use. Please visit Bukit Lawang flood appeal.