Jump to content

Recommended Posts

Posted

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/

Posted

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.?

Posted

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)) ..

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock