Scripting: linking Cascading style sheets (CSS) per page.
started by Kyle Hardy on Dec 3, 2010 — RSS Feed
Kyle Hardy
Posts: 2
Hi!
I'm working on my first live website but have run into a problem that I'd really appreciate help with.
I have created 2 cascading style sheets (one for the home page and the other I intend to use for most of the other pages) but I do not know how to tell dreamweaver which style sheets to load for which pages.
Anyone know how to do this?
Thanks for reading.
Mike Crone
Posts: 27
You need to add a line to the header on each page telling it which style sheet to load.
E.G.
link href="mystyle.css" rel="stylesheet" type="text/css"
Surround this with < & >
Mike...
WPDFD Forum Moderator
Kyle Hardy
Posts: 2
Mike Crone said:
You need to add a line to the header on each page telling it which style sheet to load.
E.G.
link href="mystyle.css" rel="stylesheet" type="text/css"
Surround this with < & >
Mike...
Thankyou kind sir!
Vishal Sharma
Posts: 23
It depend on you which stylesheet you add on which page and it does not depend upon dreamweaver.
Kim Aurthur
Posts: 1
Use this one
Place that code in homepage or your custom page to load the file you want.
Mary Rogers
Posts: 3
First you need to save both sheets with different name.It will help you when you place file name in external CSS code.
Khan Bhatti
Posts: 4
Ya mike crone, has told the thing you asked, I wana mention one thing. That is create css files seperately for every website section.Like Header, footer, menus etc.
It will be easy for you to link in your other pages.
Suresh Gupta
Posts: 63
Hello ,
First of all you need to save both sheets with different name.It will help you when you place file name in external CSS code. thanks
------------------------
forum posting and social media marketing
You must login to reply

