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

  • seamas
    Reply to Print portfolio to interview?
    seamas
    I don't think that is a good idea at all.

    I would ONLY bring the best and most relevant 12-12 pieces.

    It is pretty much a given that EVERYONE coming into an interview was not...
    Today, 02:18 PM
  • bubby17346
    Reply to Print portfolio to interview?
    bubby17346
    Embarrassing how? If they are not necessarily good projects in your opinion, you could try to use them to show what you have improved and what obstacles those projects helped you overcome. Another thing...
    Today, 02:08 PM
  • B
    Reply to Properly font pairing recommendation
    B
    The typeface used in a logo isn't usually coordinated with whatever other type is used. Ideally, it might be, but logos last a long time and restricting all subsequent typography used on everything for...
    Today, 01:41 PM
  • KitchWitch
    Reply to Haii !
    KitchWitch
    Hi Erick 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...
    Today, 01:10 PM
  • frutiger
    Reply to Print portfolio to interview?
    frutiger
    Thanks everyone! I guess I'll take some of the same pieces that are online. I have lots of printed pieces, but some are just really embarrassing to show!
    Today, 12:56 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