css is not working in localhost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boharakumar
    New Member
    • Aug 2019
    • 1

    css is not working in localhost

    i kept html file and css file inside xampp htdocs while opening a website through localhost(eg localhost/file.html) css is not working but if i opened through browser it work although i put a link of css file inside htdocs.

    please help me.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    Show the part of the code that shows the linking of external style sheet.

    Comment

    • chanderasrani
      New Member
      • Aug 2019
      • 2

      #3
      The first thing I would look at is whether or not it's a path issue with your styleheets. Use web inspector or dev tools in your browser and look for a 404 error in your CSS files. If there are any, dev tools will show the path it's looking for and you can adjust the path to your style sheets accordingly.

      Good luck!

      Comment

      Working...