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

Featured Images Featured Images Module
Collapse

Mediabistro Creative Sites Mediabistro Creative Sites Module
Collapse
Latest Topics Latest Topics Module
Collapse

  • -Gwozik-
    Reply to Je suis Charlie / I'm Charly
    -Gwozik-
    Your right, typography is really too anemic. I should have used something more dynamic.
    Text is not really important, it only tell the story : they come one day, and killed cartoonist, people stand...
    Today, 09:30 PM
  • inspiredp&d
    Reply to Feedback please - for GD assignment
    inspiredp&d
    Thank you so much! A lot of fantastic ideas that I will look into. The photo cube, refining office hours, splitting the logo to the wall and bottom of desk and graphic "painted' on bricks especially!...
    Today, 08:57 PM
  • HotButton
    Comment on Went to an interview and did a graphic design test
    HotButton
    They were happy with my reactions and the fact that I continued to counter-move their counter-moves (did stuff like pretending to text must-have-right-now info to my in-meeting boss, and found ways to...
    Today, 08:03 PM
  • Buda
    Reply to Mantas Milka Design logo
    Buda
    No image. I think you should call yourself Milk Design. I'm sure it's already taken, but milk has some great connotations that could work with branding.
    Today, 08:02 PM
  • Buda
    Reply to Graffiti Font Help!
    Buda
    I've yet to see a good graffiti font. How the characters fit together is really important. Graffiti is about lettering, not repeated characters.
    Today, 08:01 PM
Advertisement Advertisement Module
Collapse

Sponsors Sponsors Module
Collapse

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