View Full Version : Nuu! Help with floating divs. Or, I think they are. So confused!


divinesword
06-09-2006, 03:09 AM
My layout has a top half, and a bottom half, and the text should go inbetween. However, there should be a background that goes in-between as well, connecting the top half and bottom half. I have no idea how to get this to happen. Here is the code I have so far.


<head>

</head>
<body>
<body background="liv2_backbg.jpg">

<div id="box"> <center> <!-- OPENING LAYOUT CONTAINER BOX -->
<div id="top">
<!-- Begin Table -->
HERE IS WHERE THE SLICED IMAGE THAT MAKES UP THE TOP IS. IT TAKES UP TOO MUCH SPACE SO I EDITED IT OUT FOR THIS PURPOSE.
<!-- End Table -->


</div> <!-- OPENING AN CLOSING DIV HEADER IMAGE --><div id="middle" background:url("liv2_divbg.jpg")>
<style>middle{background:url(liv2_divbg.jpg)}</style> <!-- OPENING MIDDLE CONTENT BOX -->

HERE IS WHERE I WANT TO PUT IN A BACKGROUND AND CONTENT.

</div>


<!-- CLOSING MIDDLE BOX -->

<div id="bottom">&nbsp;</div> <!-- CLOSING DIV WITH FOOTER IMAGE --><img src="liv2_footer.jpg"></div> <!-- CLOSING LAYOUT CONTAINER BOX --></center></body>
</html>



Thanks ahead of time! And sorry about the vagueness. I'm not even sure if these are called floating divs.

amyaurora
06-09-2006, 03:35 PM
Wish I had the time today to redo your code but I don't. I would like to piont out that you have a lot of errors. For starters your style sheet needs to go between the head tags and you can put your body background in the style sheet.

I suggest reading through Lissa's CSS page to get a idea of what I mean and that should help get you started.

http://www.lissaexplains.com/css.shtml