Welcome to WebmasterWorld Guest from

Forum Moderators: travelin cat

Message Too Old, No Replies

How to change format of all pages of a site in one easy operation?

1:06 pm on Jun 16, 2009 (gmt 0)

New User

5+ Year Member

joined:June 16, 2009
posts: 3
votes: 0


I hope thius is the right place to post, please tell me where it should be posted if not? thanks

I have a website which I realise now needs changing if I am to get adsense to work with it becaue the margins etc are too small for the ads

Can anyone tell me (or point me to where they can tell me) how to redo my margins in my site EASILY? i.e without having to remake every single page individually?

I am hoping there is something with css that can be done but my experience of css is limited to the one piece of css I have on each page to stop the underlining of links, Someone else told me how to do that about 6 yrs ago when I made the site

I am very inexperienced in site building, I only understand html and that not particularily well, this is the only site I have ever built and am using an old version of dreamweaver

[edited by: travelin_cat at 1:37 pm (utc) on June 16, 2009]
[edit reason] Please, no personal URL's [/edit]

6:33 pm on June 19, 2009 (gmt 0)

New User

10+ Year Member

joined:Sept 26, 2002
posts: 14
votes: 0

That's a pretty loose question with way way to many variables to give a solid, directed answer however I can provide a general loose answer...

I assume you are not using includes? An include is a chunk of the code of the page (commonly the top and or the bottom (header and footer)) that is the same on every page. Often it's everything except the content. These chunks are stripped out and saved into an "include" file, this file is then referenced in each page and loaded linearly when the browser reaches each include. The end result doesn't affect how the site looks but it does allow you to change things in ONE place and have it affect EVERY page on your site all at the same time.

If you do a find/replace with dreamweaver it should only take moments.

In a similar fashion CSS can (and in my opinion _should_) be included as a separate file which will allow you to change specific elements and have it affect the entire site (font colors, text sizes, link colors, backgrounds, element sizes... literally everything).

You can include a CSS file with this:

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

Where "css/" is the directory that holds the file called style.css which is the style sheet for your site.

It's just my opinion but I think you should do some CSS learning. It's easy, logical and extremely powerful.

Back to your question, it depends on how the site was built and structured.

I know this probably doesn't help too much. I'm sorry.
CSS is your friend.

8:19 pm on June 19, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 26, 2008
votes: 0

run off to the nearest bookstore and get a CSS book.

Wrapping your head around CSS is very hard at first, but boy does it make things easy in the long run. Especially with the issue you just mentioned.

I have a favorite book recommendation that makes it really easy, but it think I will get in TOS problems if give the name here. But there are lots of good ones out there,

9:35 pm on June 19, 2009 (gmt 0)

New User

5+ Year Member

joined:June 16, 2009
posts: 3
votes: 0

thanks for your replies

The problem is that I just don not have time to learn css

I am simply trying to increase the margins either side of my page which for some arbitrary reason I set to 110px, but I now need it big enough to include the googel ads banners thingys

The entire site is html only with the one exception that every page has the same css attached to stop undelining of links

It's over 2 yrs since I even did any html so Im pretty rusty even on that

9:46 pm on June 19, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
votes: 0

Ability to do site-wide changes requires planning ahead.

Things that are useful when doing this:

  • Strategic use of SSI or similar using languages like PHP
  • CSS and strict separation of layout from content
  • bulk editing of the (x)html. This is for me one of the reasons I use xhtml, and not html - cause I like to have the option to use xml parsers to do the work for me
  • CMS and site editors
  • ...
10:48 pm on June 19, 2009 (gmt 0)

New User

10+ Year Member

joined:Sept 26, 2002
votes: 0

I agree with swa66, planning ahead is key.

Still if you're lucky you might be able to find a common element that you can do a "find and replace" with to solve your problem.

8:50 am on June 22, 2009 (gmt 0)

New User

5+ Year Member

joined:June 16, 2009
posts: 3
votes: 0

thanks again but most of what you're talking about ( apart from 'find and replace' and planning ahead) is way over my head

I can't plan ahead now as it was done several years ago

Can I just add something into the css box ( wishful thinking)?



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members