[thelist] Background images and margins

Pringle, Ron RPringle at aurora-il.org
Mon Apr 24 11:28:41 CDT 2006

Ron Pringle
Norman wrote:

> #header 
> {position:relative;width:100%;background:url(../images/headerb
> g.png) top 
> left repeat-x;background-color:900;margin:0 1px;}
> only indents on the left and runs flush on the right in IE and FF.  I 
> have tried various combinations to try to get this to work, 
> but with no 
> success.  How do I get the background image to stop short of 
> the right 
> side by 1 pixel?


margin affects the space between the object and everything surrounding
it. You'll want to use padding:0 1px; to affect the space between the
contents and its border.


More information about the thelist mailing list