TheVortex Posted August 1, 2012 Share Posted August 1, 2012 I've seen many home made websites, with a fail background fillin only the half page, that suck really. so here is a code you can put, so the background will stuck and just the content will be moved when you scrolling the page.. html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } source : http://css-tricks.com/perfect-full-page-background-image/ Quote Link to comment Share on other sites More sharing options...
Destorion Posted August 1, 2012 Share Posted August 1, 2012 I've seen many home made websites, with a fail background fillin only the half page, that suck really. so here is a code you can put, so the background will stuck and just the content will be moved when you scrolling the page.. html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } source : http://css-tricks.com/perfect-full-page-background-image/ Nice trick bro. Is this your work or you found it from somewhere.? Quote Link to comment Share on other sites More sharing options...
Lelouch Posted August 1, 2012 Share Posted August 1, 2012 Of course he found it. Don't you see at the bottom there is a little tiny text; source : http://css-tricks.com/perfect-full-page-background-image/ By the way, this is a basic code if you are doing a website ... I would be surprised if anyone working with websites (even if he just started (a newbie, so to say)) wouldn't know it .. By the way, some websites are specifically made so that the background image would only be at the top, and when you scroll down it wouldn't be there (wouldn't be stuckable, so to say (not the way that you wrote)) .. Quote Link to comment Share on other sites More sharing options...
Destorion Posted August 1, 2012 Share Posted August 1, 2012 Of course he found it. Don't you see at the bottom there is a little tiny text; By the way, this is a basic code if you are doing a website ... I would be surprised if anyone working with websites (even if he just started (a newbie, so to say)) wouldn't know it .. By the way, some websites are specifically made so that the background image would only be at the top, and when you scroll down it wouldn't be there (wouldn't be stuckable, so to say (not the way that you wrote)) .. oh... i didn't saw it cuz his text about it is too small to see it. @Anni Keep going with these kind of shares bro.!!!!! thx you so much for it. Quote Link to comment Share on other sites More sharing options...
TheVortex Posted August 1, 2012 Author Share Posted August 1, 2012 thanks bro, i appreciate it, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.