Applying two background images

To apply two images to  HTML page background you can use the following code:

html {
 height: 100%;
 background:url(bg.gif);
}

body {
 margin:0;
 background:url(bg_content.gif) repeat-y center top;
 min-height:100% !important;
 height: 100%;
}

min-height:100% – allows the background image to stretch beyond the 100% window height if the page content is longer

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>