|
You're not going to be able to do this in CSS, but it can be achieved with JavaScript.
Create a layer (for the background image) to go beneath
the existing content and resizing the image according to the screen
width.
bgimg = document.createElement("bgimg");
bgimg.src = "/images/bg.jpg";
st = {
position:"absolute",
zIndex:"-10",
width:screen.width,
top:"0",
left:"0"
}
for( s in st ){
img.style[s] = st[s];
}
document.body.appendChild(bgimg);
Bada-bing, bada boom.
|