Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. LINK Tag and CSS

LINK Tag and CSS

Scheduled Pinned Locked Moved Web Development
cssquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RX Maverick
    wrote on last edited by
    #1

    I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.

    B R 2 Replies Last reply
    0
    • R RX Maverick

      I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      Well /CSS/News.css should work, as long as CSS is in the root directory. Also remember that linux/Unix servers are CaSe sensitive. One degubbing teqniqe might be to try linking to an image in the CSS directory.


      Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen

      1 Reply Last reply
      0
      • R RX Maverick

        I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.

        R Offline
        R Offline
        Rock Star
        wrote on last edited by
        #3

        try this

        Girish

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups