Previous Message
Next Message

positioning images on a background graphic

Sent by Gunlaug_Sørtun on 15 May 2009 07:07


Anthony L wrote:
> A question though: I thought the 1px border was just for debugging
> ... But if I comment out the #container border, the button images
> shift right to the top of the div ... any idea why?

Collapsing margins...

<http://www.w3.org/TR/CSS2/box.html#collapsing-margins>


The easiest solution is to add...

#container {
padding: 1px 0;
}

....as replacement for the border. Other solutions/options are listed in
the W3C article.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: