scale background image & defining specific background images for different pages
-
Hello all,
First off, thanks for taking the time to read this post…I’ve a few questions but I’ll start with this 1 first.
OK, I am modifying Twenty Eleven theme. This is what I would like my background image to look like & scale accordingly depending on screen/browser size. Image dimensions are 1920×1280.
CSS:
#dImgBg {position:fixed; width:100%; height:100%; overflow:hidden; z-index:0;} #bgImg {width:100%; height:100%;}
HTML:
<div id="dImgBg"> <img src="images/bgTmp.jpg" id="bgImg"/> </div>
However, when using the Twenty Eleven theme, the result isn’t quite the same.
I’ve tried to “wrap” a div around #page but that was no good since that also includes the contents.
So where can I add the code to scale just the background image?
2nd question: How can I specify a background image per page?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘scale background image & defining specific background images for different pages’ is closed to new replies.