Scripting: linking Cascading style sheets (CSS) per page.

started by Kyle Hardy on Dec 3, 2010 — RSS Feed

Kyle Hardy 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 Mike Crone
Posts: 25

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 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 Vishal Sharma
Posts: 10

It depend on you which stylesheet you add on which page and it does not depend upon dreamweaver.

Kim Aurthur Kim Aurthur
Posts: 1

Use this one



Place that code in homepage or your custom page to load the file you want.

Mary  Rogers 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.

You must login to reply