Announcement Announcement Module
Collapse
No announcement yet.
url in css file Page Title Module
Move Remove Collapse
Search Search Module
Collapse

Advertisement Advertisement Module
Collapse

Latest Topics Latest Topics Module
Collapse

  • left_hand_black
    Reply to Feedback on portfolio pieces, please
    left_hand_black
    this took an eternity....
    Today, 04:01 AM
  • Nobert
    Comment on The ellipse...
    Nobert
    KitchWitch!
    Yesterday, 11:31 PM
  • Nobert
    Reply to Experience vs education.
    Nobert
    Whatever it may mean coming from me, which isn't much, I support you in spirit. One of the reasons I got interested in graphic design was that I thought it was very much a "proof is in the pudding"...
    Yesterday, 11:30 PM
  • KitchWitch
    Reply to Portfolio Weeding
    KitchWitch
    Hi Kesey and welcome to GDF.

    We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done anything...
    Yesterday, 10:32 PM
  • Budgetms
    Comment on Multiple return addresses
    Budgetms
    I had checked the DMM and couldn't find a specific answer, although it does state that the return address is where undeliverable mail is to be sent, and common sense would suggest this means you can only...
    Yesterday, 10:17 PM

X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • url in css file

    Need help with a background image in the CSS file. I have just tried uploading the site I am doing but the background images wont work. The only thing it can be is the url in the style sheet.

    The image path will only work if set out in the manner:

    Code:
    background-image: url(


    It wont work like this:
    Code:
    background-image: url(318734_7189small.jpg);


    *I having included the rest of the code*
    Could that be the reason that is stopping it displaying when uploaded?


    Any ideas


  • #2
    are the image and the style sheet in the same folder?

    Comment


    • #3
      that's a path issue - if you have your images in a folder you need to point to that folder.

      includes won't make any difference as they are parsed as HTML. Are you testing locally? Have you cleared your cache?

      Comment


      • #4
        I agree. Make sure that your images are in the same folder as your css code, or try putting a slash in front of the filename, so it will be absolute in the main folder, which is what it looks like:

        Code:
        background-image: url(/318734_7189small.jpg);
        WordPress Designer and theme developer. KlongDesigns - helping bloggers and non-technical folks claim their space on the internet.

        Comment

        Mediabistro A division of Prometheus Global Media home | site map | advertising/sponsorships | careers | contact us | help courses | browse jobs | freelancers | content | member benefits | reprints & permissions terms of use | privacy policy Copyright © 2015 Mediabistro Inc.
        Working...
        X