Since the height attribute doesn't work so well in CSS backgrounds (100% will not actually cause your background image to scale to the full height of the window, for example), if you want a full screen background you'll have to go another route. Luckily, this solution is written up cleanly:
http://paulmason.name/blog/item/full-screen-background-image-pure-css-codeSimply copy #full-screen-background-image and you're good to go. The styling also works for DIVs.
No comments:
Post a Comment