SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2003
    Location
    UK
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Browser using wrong prefix on css file

    I'm having a problem with my browser using the wrong prefix when it fetchs the css and js files for a popup window.

    I'm using relative urls for the css and js files e.g. ../styles/mycssfile.css, but instead of just putting the domain on the front, it's putting the whole path to the page that loads into the popup e.g. http://mydomain.com/path-to-page/pag.../mycssfile.css. Then it says that the mime type is wrong - well duh! :-)

    I'm using Firefox for testing, but this happens in all the other browsers too, so I guess it's something I'm doing or not doing in the HTML rather than a browser problem.

    Does anyone know why it would be doing this and how I can solve the problem?

    Debbie
    QuicknEasySalesPro.com
    - your quick and easy, yet powerful solution for managing your
    membership site sales, downloads and affiliates.

  2. #2
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Debbie
    I don't know your site's tree, but let me suggest a relative urls on the following way:
    Code:
    href="/styles/mycssfile.css"
    Mauricio Samy Silva
    http://www.maujor.com/


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
  •