socross
asked on
external style sheets hlep
hi
i have bulit a few sites in dreamweaver using CSS but have generally kept my CSS code specific to each document, in the script part of each document
i know that you can work off external style sheets but i just havent got around to working out how to do it.
now i am starting a new site i figure its a good time to work out how its done.
so could someone explain how i set this up, i want one style sheet that all my pages refer to,
i want to be able to ammend throughout design so it will update all the pages
Thanks
i have bulit a few sites in dreamweaver using CSS but have generally kept my CSS code specific to each document, in the script part of each document
i know that you can work off external style sheets but i just havent got around to working out how to do it.
now i am starting a new site i figure its a good time to work out how its done.
so could someone explain how i set this up, i want one style sheet that all my pages refer to,
i want to be able to ammend throughout design so it will update all the pages
Thanks
ASKER
so if i set this up before i start working on a document, how can update that style sheet, if i make changes to styles will the automatically go into that style sheet
thanks
thanks
You have to open up the style sheet and work directly in there. I think Dreamweaver will let you edit the style from the Style menu toolbar when working with a web page, but it's easier to work directly in the style sheet file.
It's also safer to work directly in the css file. Remember that by tweaking a style to look okay in one page, you could inadvertently mess up it's look in all the other page files!
It's also safer to work directly in the css file. Remember that by tweaking a style to look okay in one page, you could inadvertently mess up it's look in all the other page files!
ASKER
so if i create a new layer, say a menu bar that i want to have the same style accross the whole website, i create the layer in the page say index.html how can i make sure that the related css is saved in this external CSS doc, do i have to export it (if so how?) or can i set it up to save the new layers CSS in the external page. Or do i need to create the CSS within the external doc and then import it in as directed above.
If i am missing the point completly, let me know.
thanks
If i am missing the point completly, let me know.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
so as long as i make changes to CSS in the external file the main doc will be updated
thanks for all your help, took me a while to get there but its always easy when you know how.
thanks again
thanks for all your help, took me a while to get there but its always easy when you know how.
thanks again
<head>
<title>The usual page's title here</title>
<link href="mystyles.css" rel="stylesheet" type="text/css">
</head>