As long as there is a closing </div> tag, there is nothing really wrong with that code. You might have a broken tag in surrounding code. Can you post some of that?
Thanks for the quick reply. A code example is below;
The top of the division is like this:
<div id="hard" style="padding-top: 30px; padding-bottom: 20px; background-color: #fffff0">
<div id="main-back" style="background-color:#fffff0; text-align:left; margin-left: relative; width: 1000px;" >
<div id="main-box" ><a>id="study_1"</a>
<h3>What do Christians believe about God?</h3>
<Div id="texted-1" >
<!----- text printed here using <p> and </p> /////>
The bottom of the div looks like this;
<p><b>Please note</b> that all downloadable files are in .pdf format. You will need Adobe acrobat or a file converter to read them. You can download adobe acrobat <a href="http://get.adobe.com/uk/reader/">here</a> here. It is a free download.</p>
<form><input type="button" value="Download Now" onClick="window.location.href='/test/what-do-christians-believe-about-God.pdf'"></form>
<a href="#up">Back to the top</a>
If you want to see more of the code you can see it here and click on source
It's my first site! I initially had all the css code and html on one page and working! but I am now breaking it down into 2 separate files. Some code seems to repeat itself so I guess once this problem is sorted my next job is get rid of the rubbish!
Thanks for your help.