Jump to content

Background Always Same Size As Page Help


Recommended Posts

To fix that just go/make a .css file.In side the css file put this:

html, body{margin:0;padding:0;}


background-size:100% 50px

can do that, but its not yet standard. or try using

<img src="bgImage.png" style="width:100%; height:50px" position:absolute; z-index:-999/>

Is Background-Size: widely supported by Chrome, Firefox, Opera, IE, etc. now? Last I read it was hardly supported. Edited by Krewe
Link to comment
Share on other sites

The margin and padding really doesnt work...it makes the whole thing odd, my css file is this...
 .bg {z-index:-999;position:absolute;height:100%;width:100%margin:0;padding:0;}

The margin and padding have to be on the <html> and <body> elements.html, body {margin: 0;padding: 0;}
Link to comment
Share on other sites

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