29 users online (1 members and 28 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 2
  2. Replies: 3
  3. background image    Forum: HTML Forum
    Replies: 9
  4. Background image    Forum: HTML Forum
    Replies: 4
  5. Can't get image to set as background    Forum: HTML Forum
    Replies: 4
  1. #1
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652

    Relative linking to background image.

    Well, after creating a jamrent.css file and beginning to reference, I 've encountered a problem getting the background image to work consisitently - it does or does not depending upon who knows what's in or not in my local cache with IE 5.01


    The two versions of one page where I reinserted the BACKGROUND code into the <BODY ...> and the other that just references the ../jamrent.css file are at:

    http://jamrent.50megs.com/tomm/sport.htm

    and

    http://benzden.0catch.com/tomm/sport.htm

    Relative linking question:

    When referencing the ../jamrent.css file from tomm/sport.htm, does the internal jamrent.css file use the same referencing scheme or is it (like .js files) always based upon the location of the source HTML file and not the location of the .css file on the server?

    In other words, should the .css file refer to /i/backgr/newspr.jpg or to ../i/backgr/newspr.jpg
    as the url(...) inside the definition for #bodynews?

    Oh yes, click the 2002-2002 at the bottom (of the 50megs site) to get to the jamrent.css source file.
    Last edited by benzden; 05-14-2002 at 12:58 PM.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Allo m8,

    urls are relative to the css file, not the html file. Its the difference between a LINK and an INCLUDE.
    Hope that helps.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread