Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Directories

  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    175
    Thanks
    4
    Thanked 6 Times in 6 Posts

    Directories

    I have taken over a from a previous developer on a site. They use a / infront of all their links for example.

    <link href="/css/style.css" type="text/css" rel="stylesheet">

    Where would I put style .css?

    I have been doing it like example_folder/css/style.css but it doesn't work, so where should I be putting the css folder?

    Thanks,
    Josh

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,951
    Thanks
    9
    Thanked 724 Times in 718 Posts
    That's an absolute reference - the initial / signifies the root folder - so style.css should go in a folder called css off the root folder.

  • #3
    Regular Coder
    Join Date
    Mar 2010
    Posts
    294
    Thanks
    3
    Thanked 7 Times in 7 Posts
    Hi, guys

    Check out the way to your style.css, if it's relational or absolute, it is very likely that you have an error in syntax
    websitetemplates[dot]bz

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,951
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Quote Originally Posted by bestdeveloper View Post
    Hi, guys

    Check out the way to your style.css, if it's relational or absolute, it is very likely that you have an error in syntax
    What?

  • #5
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    He has been doing this a lot lately. He is posting garbage responses to get his sig link exposed...Too bad that url has been blocked by CF!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #6
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,951
    Thanks
    9
    Thanked 724 Times in 718 Posts
    I know, spotted that myself, there was another one in a different thread. Felt I had to comment on this one...Shocking about the signature though.

  • #7
    Regular Coder
    Join Date
    Nov 2008
    Posts
    175
    Thanks
    4
    Thanked 6 Times in 6 Posts
    This is really confusing me because my css folder is in the root directory called css and it doesn't work.

    If I get rid of the / and make it

    Code:
    <link href="css/style.css" type="text/css" rel="stylesheet">
    Then it works but I want it to work with the / as there is a lot of paths with it included and to change them all is a big hassle.

    Thanks,
    Josh


  •  

    Posting Permissions

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