Ya'll I'm getting into CSS for the first time in a long time. Laying out a WordPress template. I've found my work around, but I'm wondering if this is documented somewhere, or if you could help me understand it.
I have a background image that will create a gradient border. The background does not fill the entire area of the div, however when the padding is left 0px. When I used a nested div, the background begins only around the border area of the nested div. CSS #container { background: url('narrowchannelgradient.gif'); width: 830px; } #content { margin: 15px; } HTML <div id="body"> <div id="container"> <div id="content"> Hello, World! </div> </div> </div> And an example of the problem is here... http://blogometer.com/repository/css/background-border/index.html You'll note that the first div has no problem because it has a padding set. -- Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504 717 1428 Think New Orleans | http://thinknola.com/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] 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/