This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > October 2005 > Page properties





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Page properties
johnangless

2005-10-27, 6:19 pm

I want to change the background colour for my whole site without having to go
through each page individually as there are nearly 100 pages.

Is there some way of doing this? Or do I need to do it the long way?

Thanks in advance for anyone who might be able to help me on this!

John

Michael Lunsford

2005-10-27, 6:19 pm

You could search and replace the entire site. Search for "<body" and replace
with "<body bgcolor=#color".

Or, you could use CSS and create an external style sheet. That way, if you
wanted to change something site wide later on, you'd only need to change one
page to change the wholel site.

To create an external style sheet. Click "window" and "styles" click the
little "plus" in the style's pane. Select the "Tag" option, then change the
name to "body" (which you can also get out of the toggle menu in that field).
Define in new style sheet.

name our sheet something like "mystyle.css". Your CSS dialog comes up. left
hand side, click background, make whatever color you want, press okay.

the current page will likely have it, but you'll need to add the following to
all the rest of your HTML files somewhere between the <head> and </head>

<link rel="stylesheet" href="mystyle.css" type="text/css">

Pablo

2005-10-27, 6:19 pm

Use the find and replace feature. In future though you will be well advised
to use cascading style sheets (css)

--
Cheers Pablo


http://www.dellwebsites.com

"johnangless" <webforumsuser@macromedia.com> a écrit dans le message de
news: djqmsn$3bn$1@forums.macromedia.com...
>I want to change the background colour for my whole site without having to
>go
> through each page individually as there are nearly 100 pages.
>
> Is there some way of doing this? Or do I need to do it the long way?
>
> Thanks in advance for anyone who might be able to help me on this!
>
> John
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews