|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
multiple css application
I got about 50 html pages that I want to apply a css style sheet to. Is there any easy way to do other than my current method of opening each individual page and then applying the sheet, cause it really takes a lot of time? I'm using Dreamweaver MX.
Thanks David |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Nope.
|
|
|
|
|
|
#3 |
|
Member (5 bit)
Join Date: Nov 2001
Location: The Crimson Permanent Assurance
Posts: 23
|
I would think Dreamweaver MX would have some function or other to add a style sheet to every page? If not, the why use it - Notepad is the way to go
![]() Domhal |
|
|
|
|
|
#4 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
There are three ways to do a stylesheet, all of them involve editing each page. I believe DW has the ability to do a 'Search and Replace'. You could probably do a search like this:
Search for </head> And replace it with this: <LINK rel="STYLESHEET" type="text/css" href="/external.css"> </head> |
|
|
|
|
|
#5 |
|
Member (9 bit)
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
|
mairving,
I wouldn't do that with Dreamweaver. I seen tons of web pages where someone went in using DW and applied a stylesheet (using the DW comments out the Problem is, if you change the stylesheet, you have to go back and update every page that uses it. Using Notepad to insert the code you used would be a heckuva lot cleaner. That way, if you change the stylesheet, the appearance of all the pages that use it are instantly changed. |
|
|
|
|
|
#6 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Member (9 bit)
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
|
OOPS!! had to leave just after posting yesterday and didn't get to take a look at it until it was too late to edit and put in the "code" tags. Part of my post was missing.
I agree with you, using an external stylesheet, referenced by multiple pages, means you can change the stylesheet and the appearance of all the pages gets changed. What the "missing" part of my post was talking about was that, if you use DW to change a page that references the stylesheet, DW in its infinite wisdom actually copies the stylesheet into the page and saves it there. Not a good thing. Later, you change the stylesheet and wonder why the change didn't take effect in the page you changed with DW. If you then open the page in DW, you see that DW commented out the LINK tags and copied the (old) source of the stylesheet into the page. Sorry about the "partial" post before... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|