Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member BallardStudio's Avatar
    Join Date
    Jul 2011
    Posts
    143
    Member #
    28552
    Liked
    6 times
    Can CSS be used to call images from a specific location? I have a jquery that I downloaded running images. When I try to replace the images with my own, the demo images still appear. Even if they are removed from the HTML and replaced with my own.
    I'm an art director crossing paths between print and web design.
    http://www.ballardstudio.com

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    I believe the jQuery has to have the image paths spelled out for it, not in the CSS but in the actual javascript. I may be wrong, but if you could post a link I could take a look and see what's what.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Senior Member BallardStudio's Avatar
    Join Date
    Jul 2011
    Posts
    143
    Member #
    28552
    Liked
    6 times
    I figured it out. For some reason, the path needed an extra dot in the "../images" directory. I just put the whole thing together and posted it on my homepage. Thanks for the hint.
    I'm an art director crossing paths between print and web design.
    http://www.ballardstudio.com

  5. #4
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,467
    Member #
    28473
    Liked
    265 times
    for future reference with the ../

    ../ is an absolute path from the route - Its similar to having http://www.example.com/images/image01.jpg Only without all the hassle. This is absolute so you need to make sure the file you want is in the exact correct location.

    ./ is a relative path, meaning you can place the image within a folder in the relative path folder "eg: ./images/ " so what the server (in theory) should do is look for a file name under that folder directory and subdirectories... I dont like using this method though as I can cause trouble and "Dead link" issues.
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>

  6. #5
    Senior Member BallardStudio's Avatar
    Join Date
    Jul 2011
    Posts
    143
    Member #
    28552
    Liked
    6 times
    I use absolute paths, but for some reason they didn't work correctly (at first) with the Javascript. I'm still a young grasshopper though. I must master my programming skills to enter the next level. Mantis!
    I'm an art director crossing paths between print and web design.
    http://www.ballardstudio.com

  7. #6
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Alpha is correct, depending on how it's written ( the author ) can point it at a folder location and pull all the images with a function, or they can spell out a relative path ( relative to the location of the page the script is called on )

    With CSS, all images referenced by the CSS is relative to the location of the CSS. That's why it always good to use an external CSS. Then your image folder path that is relative to the CSS file never changes, no matter how many levels up or down the page is.

    I typically have 2 - 3 image folders on any given site ( makes it easier for new people to find ), 1 image folder strictly for images being referenced by the CSS ( usually a subfolder of the CSS folder ), then an image folder for any common images across the site ( I use an asp function to write out the path ) , then an image folder for anything non site related.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

call image from css

,

call img css

,

calling an image ihtml from css

,

calling image from css

,

calling image in css folder

,

calling image using css

,

how to call a css image from html

,

how to call an image in css

,

how to call out specific image in css

,

mbc call images in css

Click on a term to search for related topics.
All times are GMT -6. The time now is 09:23 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com