Add background to skin

fyndler

Member
Hey, i try to add background to my skin, but it goes over the whole skin, like text and other stuff. And i´m trying to only have it on the sides off the skin. I use the code background-image:url(/images/background.jpg);background-repeat:no-repeat;background-size:cover;background-attachment:fixed in the css file. I put the code within the body.

I´m trying to get the white sides off the skin to use a background
Namnlös0.png

But i can only make this, i really want the middle to stay white without the background. Any idea?
Namnlös.png
 

Basti

Administrator
Staff member
Before you do anything more, fix your base layout wrapper, see pm. Before you not have proper html elements setup, do not attempt anything other. The more you add to broken base, the worse things become

Once that is done, add the background image like you did, to the body element
The reason the content isnt white is because the base browser bg is white on body, now your overwrote body with an image.
So, set a background also onto wrapper element ( background: #fff; )
 
Top