Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: travelin cat
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]
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.
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,
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
Things that are useful when doing this: