Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
My CSS and JS external files are not working in my project

I have a simple project with that files structure:

image of my structure

But my CSS and JS files are not loading...

<link rel="stylesheet" href="./css/main.css">

<script src="./js/main.js"></script>
about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

May be this should work :

 <link rel="stylesheet" href="css/main.css">
    
    <script src="js/main.js"></script>
about 4 years ago · Juan Pablo Isaza Report

0

the below should works:

<link rel="stylesheet" href="../css/main.css">

<script src="../js/main.js"></script>

Add two dots instead of one.

For more information read: https://www.w3schools.com/html/html_filepaths.asp

about 4 years ago · Juan Pablo Isaza Report

0

It should be work

<link rel="stylesheet" href="/www/public/css/main.css" type="text/css">

<script type="text/javascript" src="/www/public/js/main.js"></script>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!