Best way to add different stylesheets for different pages
-
Hi everybody
I am using different CSS files on all my pages (they all have their own colour codes and just look different to each other) and am wondering which approach is the best to go.
At the moment I am using a massive elseif function to echo out which stylesheet to link to. Which actually works fine but it feels a bit silly to have in the header. Is this really the proper way of achieving this or is there a better way?
I was thinking that perhaps it would be better to create separate headers for the pages instead but that also feel a bit redundant as they are all coded the same.
What do you think is the best way to do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Best way to add different stylesheets for different pages’ is closed to new replies.