Jump to content

How to set your own background


Wes81

Recommended Posts

The edit, as specified in post #4, was not completed. I see in cubecart.default.css:

body { background-image: url/domains/ncom.be/public_html/webshop/skins/foundation/images/HyperXGrunge2.jpg);}

It must be written this way:

body { background-image: url(../images/HyperXGrunge2.jpg); }

Link to comment
Share on other sites

  • 3 weeks later...

Hi, Having an issue with the back ground in foundation

....

.top-bar-section .dropdown label {
 color: #ffffff 
 }
body { background-image: url(../images/source/bud_logo.jpg); }

 

I inserted body { background.... into cubecart.default.css with nothing appearing on the home page. Is body .... order specific?

regards

Duncan 

Link to comment
Share on other sites

When the browser starts loading a page's CSS resources, and the CSS file makes reference to an image, the location of the image is relative to the location of the CSS file.

So, with the CSS file located here:
root/skins/foundation/css/

And the image you want is located here:
root/images/source/

The resultant path is:
Up to /foundation/, up to /skins/, up to root, down to /images/, down to /source/
or, url(../../../images/source/bud_logo.jpg);

Link to comment
Share on other sites

  • 4 weeks later...

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