Announcement

Collapse
No announcement yet.

url in css file

Collapse
X
  • 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

        Search

        Collapse

        Sponsor

        Collapse

        Incredible Stock

        Latest Topics

        Collapse

        • B
          Reply to Briefs
          B
          I don't think there is a one-size-fits-all answer to your question. It depends on the company, its culture, the marketing person, the designer and the project at hand.

          I oversee both the...
          Today, 09:50 AM
        • pers0n
          Reply to Portfolio usage of work
          pers0n
          Well the work would be work I did. For example lets say I designed someone's logo, poster or website and they want me to take it down.
          Today, 09:25 AM
        • MinaZee
          Comment on Logo Feedback
          MinaZee
          Thanks Glitchin , and i will.
          Today, 06:32 AM
        • Woodenpablo
          Briefs
          Woodenpablo
          What's the general consensus on how to interpret briefs written by a marketing manager or director etc? I was in a meeting at work where I interpreted the brief incorrectly and got a critised for it....
          Today, 04:43 AM
        • PrintDriver
          Reply to Portfolio usage of work
          PrintDriver
          Why would you have someone else's work on your portfolio site?
          Why would you not honor a takedown notice?
          Doesn't matter if you don't claim copyright, or even if you credit the work appropriately....
          Yesterday, 07:50 PM
        GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings
        Working...
        X