#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Location
    Barbados
    Posts
    149
    Rep Power
    64

    Reference to css file in a subdirectory


    Hi,

    I have a script that refers to a css file (cbw.css). I want to place the css file in a subdirectory but it does not work. If I place it root directory, it works.

    I even tried referring to entire url, and it still does not work

    PHP Code:
    echo "<head>";
    echo 
    "<link media='screen' type='text/css' href='127.0.0.1/phpfusion7/cbw/css/cbw.css' rel='stylesheet'/>";
    echo 
    "</head>"
    but if I put the url directly in the browser, it brings up the css file, so I know that the reference to the directory is correct.

    Thanks in advance.



    UPDATE

    Found answer - link to images in css file was incorrect.
    Last edited by siric; January 2nd, 2010 at 05:38 PM. Reason: Fixed problem

IMN logo majestic logo threadwatch logo seochat tools logo