Jump to content
MakeWebGames

Recommended Posts

Posted

I have a background image and I want it to fix any browser screen hence stretch to 100%. It's not doing it >.<

Not sure how to stetch it and it's driving me mad, here's my CSS

 

body {
background-image:url('images/spacecont.png');
background-size: 100%;
background-color:#D5DCE2;
margin-top: 0px;
margin-bottom: 0px;
}

 

I know It's probably simple, I'm just missing it :(

Please ignore the random <br />'s they aren't part of the code :) Thanks.

Posted

Would be better if you could post the image so people can see what your working with.

What size is your image? you may find this easier to shrink a larger image than stretch a smaller one.

  • 2 weeks later...
Posted
body {
background: #D5DCE2 url('images/spacecont.png');
background-size: 100%;
margin:0%;
}

 

Try that (:

Thanks, I got it now, the code didn't work for me, but I've gone for a fade out now `cause everyone seems to be >.<

Question answered :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...