SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist dalangalma's Avatar
    Join Date
    Aug 2002
    Posts
    468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NS4.78 and relative URLs in CSS?

    In most platforms, if you want to specify a URL for something like a background image in a CSS file, you specify it relative to the CSS file itself, right? However in NS4 it seems to try to take the path relative to the file the CSS is linked to. What gives? Is it fixable?
    Web Design:
    http://www.numbera.com/
    Free Web Design Resources and Software:
    http://brh.numbera.com/

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, it's a known NN4 bug...it interprets urls relative to the HTML file, not the CSS. workarounds: keep images in the top level of the site, in the same directory as the HTML file, or (not sure if this will work, but worth a try) use absolute paths like /images/blah.jpg (i.e. in relation to the site root)...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Evangelist dalangalma's Avatar
    Join Date
    Aug 2002
    Posts
    468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or just say "Suck it, NS4 users."
    Web Design:
    http://www.numbera.com/
    Free Web Design Resources and Software:
    http://brh.numbera.com/

  4. #4
    100% Windoze-free earther's Avatar
    Join Date
    Feb 2003
    Location
    Linuxland
    Posts
    2,788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by redux
    yes, it's a known NN4 bug...it interprets urls relative to the HTML file, not the CSS. workarounds: keep images in the top level of the site, in the same directory as the HTML file, or (not sure if this will work, but worth a try) use absolute paths like /images/blah.jpg (i.e. in relation to the site root)...
    I have my background image in the same directory as the HTML and it works correctly in NN 4.79.


Bookmarks

Posting Permissions

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