homepage Welcome to WebmasterWorld Guest from 54.242.231.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

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




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

Hello,

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]

 

pillageTHENburn




msg:3936976
 6:33 pm on Jun 19, 2009 (gmt 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.

Baruch Menachem




msg:3937059
 8:19 pm on Jun 19, 2009 (gmt 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,

I_Simonius




msg:3937101
 9:35 pm on Jun 19, 2009 (gmt 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

swa66




msg:3937108
 9:46 pm on Jun 19, 2009 (gmt 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
  • ...

pillageTHENburn




msg:3937137
 10:48 pm on Jun 19, 2009 (gmt 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.

I_Simonius




msg:3938073
 8:50 am on Jun 22, 2009 (gmt 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)?

thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved