09 Sep 06
07 Mar 07 10:30 pm
Problem with CSS - page isn't taking the CSS specificity
I am building my first site with CSS, and I am facing my first CSS problem ever!
Here is what I've done so far:
* I uploaded my CSS folder into the root directory.
* I uploaded my index pages and other pages into the root directory.
Below is the link for the CSS:
<link rel="stylesheet" href="css/style.css" type="text/css">
==> Result: everything is fine.
Here is the problem:
I created a new directory, and then uploaded a page to this directory.
Here is the problem: That page in the new directory
doesn't take the CSS specificity.
My question: Should I upload the CSS file in each directory? I think I have to add this line: ../css/style.css
So that <link rel="stylesheet" href="css/style.css" type="text/css"> will become:
<link rel="stylesheet" href="../css/style.css" type="text/css">
Who can help me?