I know using css I can change font styles and colors and have it reflect through the whole site, but does css allow me to change text on one page and have it reflect through the whole site?
Dreamweaver has a feature called a “library” that lets you do this. You first have to create a library that just has the HTML for your navigation bar (as an example). Then, from the assets menu you need to drag the navigation bar library into each page that needs to have it.
BTW, you can do the same thing with templates, but templates are better if you have multiple design elements that are repeated, and you just need to change the content/text of individual pages, while libraries are better for individual design sections.
Once you have a library (or template) set up, if you make a change in the library and save it, Dreamweaver will automatically update the HTML in every page that has that library in it. Then you need to upload the pages to the web server.
It is much more elegant to use something like php includes, as a previous answer suggested. But if you don’t know how to do that, Dreamwever’s library and template features mimic the functionality you would get with an approach that uses inlcudes.
March 20th, 2008 at 10:21 pm
No. CSS only affects the look of the site, not the content.
March 22nd, 2008 at 11:53 pm
To do what you’re talking about, you need to use includes – either php includes or ssi -server side includes.
March 26th, 2008 at 4:58 am
Dreamweaver has a feature called a “library” that lets you do this. You first have to create a library that just has the HTML for your navigation bar (as an example). Then, from the assets menu you need to drag the navigation bar library into each page that needs to have it.
BTW, you can do the same thing with templates, but templates are better if you have multiple design elements that are repeated, and you just need to change the content/text of individual pages, while libraries are better for individual design sections.
Once you have a library (or template) set up, if you make a change in the library and save it, Dreamweaver will automatically update the HTML in every page that has that library in it. Then you need to upload the pages to the web server.
It is much more elegant to use something like php includes, as a previous answer suggested. But if you don’t know how to do that, Dreamwever’s library and template features mimic the functionality you would get with an approach that uses inlcudes.