Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

courses in dreamweaver - css

Forum home » Delegate support and help forum » Dreamweaver Training and help » courses in dreamweaver - CSS

courses in dreamweaver - CSS

ResolvedVersion Standard

Stanley has attended:
Dreamweaver 8 Intermediate course

CSS

How do i apply a css file to every page of the website ?

RE: CSS

Hi Stanley,

Great question.

I always store my global styles in a separate .css file. For me it's in a folder called /asset/css

Then between the <HEAD> tags of every page (in your template is best!), have code like this:
<link href="/asset/css/global.css" rel="stylesheet" type="text/css">
which will link to that .css file each time. This is called stylesheet linking, and I would definitely recommend using it. You can link as many stylesheets in this way as you like.

Even if you're linking to a stylesheet, you can still override any styles on a particular page by redefining the same style 'in this document only (ie. between <STYLE> tags after your <LINK> tag). That's one of the reasons they call it cascading!

Thanks for attending our Dreamweaver Intermediate course today.

Regards, Rich

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Dreamweaver tip:

Viewing you page in the browser

If you are working in design view you can quicky preview your webpage by pressing the F12 key

View all Dreamweaver hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.