Jump to content

Background image


Recommended Posts

Hello,

 

I would like to add a background image to my website.

I am using prestashop 1.6.0.9 with this theme: Poultry theme

You can take a look at my site here:

http://goo.gl/Ap7Qli

 

In global.css, i found this piece of code:

body {
  min-width: 320px;
  height: 100%;
  line-height: 18px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #242424;
  background: #fff; }
  body.content_only {
    background: none; }

I tried changing this line:

background: #fff;  

to this line:

background-image: url("http://localhost/themes/theme982/img/shutterstock_125275664.jpg")

Now it does show the image like this: post-939155-0-95882400-1425635597_thumb.jpg, while i would like it to show like this: post-939155-0-43181600-1425656150_thumb.jpg(made this in photoshop)

 

It would be appreciated, if anybody knows a way to achieve what i have invisioned.  :)

Edited by Yakje (see edit history)
Link to comment
Share on other sites

Thanks alot Nemo, for the header part it worked!

Now i thought it should be the same for the footer, but i can't seem to get it right.

I added the following code for the footer:

  footer{
  background: url(../img/footer-bg.png) repeat-x;}
  .footer-container
  {background-color:#fff;} 

But as you can see post-939155-0-06751900-1425834476_thumb.jpg the footer-bg.png does not go all the wat to the left and right.  

 

And although the colums now show the way i want it post-939155-0-09108600-1425834477_thumb.jpg, the content-bg.png doesn't seem to be applied.

.columns-container {
  background: url(../img/content-bg.png) repeat-x left top; }
Link to comment
Share on other sites

Try inspecting both the outer part of the footer and columns bg with chrome's console., right click and choose inspect element. It should tell you why rules are not being applied as you want. I suspect footer-container is the outer part anyway

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