PDA

View Full Version : css layout template having problems


DammyG
05-08-2007, 03:43 PM
Hi, I used a css sample layout but a lot of things are still not laying out properly.
The main text where the dots are go off the page, how do I limit it so I can type a way and it always stay in that space?
At the bottom I added something to the footer, now it won't fit properly, how can I have it so the footer always comes underneath even if I change the size/add content?
Here is the link: http://www.dogula.co.uk/index3.php

Thank you in advance for any help you can provide

johnz
05-08-2007, 07:16 PM
First thing you should always do is check and make sure your page doesn't have any major errors, which your page does.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.dogula.co.uk%2Findex3.php

DammyG
05-08-2007, 08:22 PM
Hi, ok thanks for that, I have changed everything that had problems apart from the ones to do with the ads, what should I do about those?

johnz
05-08-2007, 08:30 PM
To fix the errors you still have, instead of using </img> and </input> to close the tags just use />. Like this:

..."0" alt="Google" align="middle" /></a>

..." name="domains" value="www.dogula.co.uk" />



To keep the text of your content div from overflowing into the rest of the page, simply give it a width.


#content {
width: 475px
margin-right:150px;
padding:5px;
text-align:left;
}

DammyG
05-08-2007, 08:40 PM
thanks my page is validated now, but the width thing is not working, do you have any ideas what is wrong?

johnz
05-08-2007, 08:54 PM
I don't see that you've added that to your stylesheet for the link you provided in your first post.

DammyG
05-08-2007, 09:20 PM
#content {
width: 475px;
padding:5px;
margin-right:150px;
text-align:left;
}

That is what it says on my style sheet, is that not what I need to add?