Click to See Complete Forum and Search --> : more than wallpaper for body


SZero
01-28-2008, 08:23 PM
can i put more than 1 bg for body, ex one for left align and one for right align?

SZero
01-29-2008, 02:21 AM
any1??

WebJoel
01-29-2008, 01:30 PM
<style type="text/css">

html {background-image:url(name.jpg);}
body{background-image:url(nameTWO.jpg);}
....
</style>

Assuming you want one aligned to the left and another aligned to the right:

<style type="text/css">

html {background:url(name.jpg) top left repeat-y;}
body{background:url(nameTWO.jpg) top right repeat-y;}
....
</style>

SZero
01-31-2008, 10:28 AM
didn't work, it only shows the one in body

Robert Wellock
01-31-2008, 12:55 PM
Well, it depends if you are in quirks mode: http://en.wikipedia.org/wiki/Quirks_mode plus if there was more padding you'd probably see the second image. However, you probably mean on the BODY element and z-index would be the nearest.