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

        Advertisement

        Collapse

        Latest Topics

        Collapse

        • MumboJum73
          Reply to Need critique for logo
          MumboJum73
          I agree with what has been said above. I think you can stick with the font but the brain imagery must be re-worked. The idea is a good one but has been done a lot. That can be good or bad depending on...
          Today, 07:34 PM
        • Juanm89
          Reply to Security One Redesign
          Juanm89
          Thank you so much guys
          Today, 07:28 PM
        • B
          Comment on Sign My Shoe!
          B
          It might seem a little flat footed, but that's right instep with what I was thinking.
          Today, 07:23 PM
        • HiddenDev
          Reply to Need critique for logo
          HiddenDev
          Hello, welcome to the forums.

          I agree that the puzzle pieces aren't quite in the "right" positions. I like the way they are placed randomly, but it's way too cluttered.
          ...
          Today, 05:06 PM
        • Cosmo
          Reply to Logo and Business Card feedback
          Cosmo
          I'll say the same thing I say all the time. Design your logo in black and white. And design it with a pencil and paper, not on the computer. When I design a logo, the computer is only on maybe the last...
          Today, 04:54 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