Problem with CSS - page isn't taking the CSS specificity
-
superaff - Posts: 587
- Joined: 09 Sep 06
- Location: Just arrived in Alexandrie
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
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?
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
- http://www.mysite/newdir/page.html
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?
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
-
superaff - Posts: 587
- Joined: 09 Sep 06
- Location: Just arrived in Alexandrie
07 Mar 07 10:44 pm
Problem resolved guys. I've looked at another site, and I found the problem.
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
-
MarkLing - Posts: 2330
- Joined: 13 Jun 06
08 Mar 07 3:43 am
Pleased we could be of some assistance :)
Good work on the CSS... once you get your head around it, it's going to make your job a whole lot easier.
Mark
Good work on the CSS... once you get your head around it, it's going to make your job a whole lot easier.
Mark
Limited time special - Try Affilorama Premium for just $1 for 7 days: http://www.affilorama.com/premium
-
superaff - Posts: 587
- Joined: 09 Sep 06
- Location: Just arrived in Alexandrie
12 Mar 07 10:36 pm
I really hope that, I remember when I changed all the pages of my previous site manually following your suggestions (in the review video).
It was so time consuming!
I start to like CSS.
It was so time consuming!
I start to like CSS.
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
-
MarkLing - Posts: 2330
- Joined: 13 Jun 06
13 Mar 07 4:16 am
While you're at it (streamlining your site) don't forget about those PHP includes. Real time savers. Also keep an eye out for some lessons on content management systems that'll be coming out soon.
All the best,
Mark
All the best,
Mark
Limited time special - Try Affilorama Premium for just $1 for 7 days: http://www.affilorama.com/premium
