Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Problem with CSS - page isn't taking the CSS specificity

Moderator
superaff
Posts: 532
Joined: 09 Sep 06
Trust:

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
    http://www.mysite/newdir/page.html
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?
  • 0
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
 
Moderator
superaff
Posts: 532
Joined: 09 Sep 06
Trust:
Problem resolved guys. I've looked at another site, and I found the problem.
  • 0
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
 
Site Admin
markling
Posts: 2488
Joined: 13 Jun 06
Trust:
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
  • 0
Limited time special - Try Affilorama Premium for just $1 for 7 days: http://www.affilorama.com/premium
 
Moderator
superaff
Posts: 532
Joined: 09 Sep 06
Trust:
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.
  • 0
Did you see the amazing case studies on my blog http://mynetmarketingland.com/blog1/
Affiloblueprint Bonus: http://www.mynetmarketingland.com/mark-ling/affiloblueprint.html
 
Site Admin
markling
Posts: 2488
Joined: 13 Jun 06
Trust:
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
  • 0
Limited time special - Try Affilorama Premium for just $1 for 7 days: http://www.affilorama.com/premium
 
cron