CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
Other Discussions
how to make a full page backround image
olawale
Permalink to comment
#
May 2012
i tried this now with html but it didn't work
olawale
Permalink to comment
#
May 2012
does it mean it work on html
joshuanhibbert
Permalink to comment
#
May 2012
Have you tried including a message to the browser wrapped in
please
tags?
On a serious note, if you are using background images then
background-size: cover;
may be what you are after.
jamy_za
Permalink to comment
#
May 2012
What is a
full page background image
? :p
jhned
Permalink to comment
#
May 2012
Just set
background-size:100%; and background-attachment:fixed;
So, the image will take on the size of its containing element, and will stay in place while scrolling. Just make sure it's a big image, so it doesn't look stretched.
karlpcrowley
Permalink to comment
#
May 2012
lol
@joshuanhibbert
Maybe you should be using Spiffing CSS -
http://spiffingcss.com/
Add a Comment
pleasetags?On a serious note, if you are using background images then
background-size: cover;may be what you are after.So, the image will take on the size of its containing element, and will stay in place while scrolling. Just make sure it's a big image, so it doesn't look stretched.
Maybe you should be using Spiffing CSS - http://spiffingcss.com/