Skip to main content
Participant
March 29, 2018
Question

Fixed background image wont show up.

  • March 29, 2018
  • 1 reply
  • 1022 views

I am trying to put this photo (the blue people ) in the background. The second one is the one that is appearing on the internet. I used to have this up and now it is not working when I placed it on the internet. It even shows up in dreamweaver when i go live! Please someone help!

Here is a copy of my code:

.testimonial-section {

    padding: 80px 0;

    position: relative;

    background: url('../image-files/muscle-iq-ACTIVEa.jpg') center center fixed;

    background-size: cover;

    -webkit-background-size: cover;

    -moz-background-size: cover;

    -o-background-size: cover;

}

.page-banner-section {

    margin-top: 150px;

    padding: 80px 0;

    position: relative;

    background: url('../image-files/muscle-iq-ACTIVEa.jpg') center;

    background-size: cover;

    -webkit-background-size: cover;

    -moz-background-size: cover;

    -o-background-size: cover;

}

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
March 30, 2018

You say it doesn't work on the web.  Did you upload the images folder?  And the CSS?

What's the URL to your problem page?

Nancy

Nancy O'Shea— Product User & Community Expert
WolfShade
Legend
March 30, 2018

(Nod)  If I had a nickel for every time I altered code but forgot to put the image on the server, I'd have enough money to buy a decent used car.

V/r,

^ _ ^