Text spilling over div.
I am having problems keeping the text within the center column of my site, could someone please have a look at it and maybe show me where I am going wrong. This is my first attempt at greating a site completely with CSS rather than tables :)
This seems to work:
Your .maincontent div was wider than the background picture suggests. You can detect this kind of layout problems by also setting a screaming background-color to the div. Try it. You'll never look back.
width:454px; /* Decreased by padding-right */
padding-right:4px; /* or any value you want. Just be sure to take it of the width */
/* margin-right:150px; You don't seem to need this... */
I second the "screaming bkgd colour" technique. Very helpful at times.
Brilliant, thanks for your help!! Much more helpful that some people on another forum I was posting on :)
I will keep the bkgd colour thing in mind. Cheers.