Spunky. Thanks for taking some more time to think about my query. I'm not particularly familiar with Java Script yet so I was hoping to come up with a HTML/CSS solution. Dsonesuk. I've taken your suggestion on-board. This is what I've (well, you've) come up with and, so far, it seems to be working. <!DOCTYPE html><html><head><link type="text/css" rel="stylesheet" href="stylesheet.css"/><title>Title</title> </head> <body><div id="container"> <div id="header"> <img src="images/header.png" id="headerBackground"/> <img src="images/HeaderLogo.png" id="headerlogo" alt="Logo"/> </div> <div id="contentTop"> <img src="images/contentTop.png" id="contentTopBackground"/> </div> <div id="contentCenter"> <img src="images/contentCenter.png" id="contentBackground"/> <p id="content"></p> </div> <div id="contentBottom"> <img src="images/contentBottom.png" id="contentBottomBackground"/> </div> <div id="footer"> <img src="images/footer.png" id="footerBackground"/> </div></div></body> </html>
html {position: relative;background: url('images/background.png');margin: 0 auto;border: 0;padding: 0;} body {postion: relative;margin: 0 auto;border: 0;padding: 0;} div {postion: relative;margin: 0 auto;border: 0;padding: 0;} img {postion: relative;margin: 0 auto;border: 0;padding: 0;} p {postion: relative;margin: 0 auto;border: 0;padding: 0;} #container {position: relative;width: 100%;min-width: 800px;height: 100%;} #header {position: relative;height: 170px;width: 100%;min-width: 800px;} #headerBackground {position: absolute;height: 170px;width: 100%;min-width: 800px;} #headerlogo {height: 90px;width: 348px;position: absolute;top: 40px;left: 30px;} #contentTop {position: relative;height: 100px;width: 800px;} #contentTopBackground {position: absolute;width: 800px;height: 100px;} #contentCenter {position: relative;width: 800px;height: 100%;min-height: 180px;} #contentBackground {position: absolute;width: 800px;height: 100%;z-index: -1;} #content {color: red;width: 700px;} #contentBottom {postion: relative;height: 100px;width: 800px;} #contentBottomBackground {position: absolute;width: 800px;height: 100px;} #footer {position: relative;height: 120px;width: 100%;min-width: 800px;} #footerBackground {position: absolute;height: 120px;width: 100%;min-width: 800px;}
First of all, I have to point out that I appreciate that I've used the position, margin, border, and padding properties on almost every element. I would have expected this to "cascade" through to the other elements but it didn't so just to make it clear to myself and, hopefully, the browser it's specified everywhere! So, just to clarify, what's now happening is that when I enter text into the p "content" element the "contentCenter" div expands, in height, to accomadate the extra content, and the "contentBackground" img element also expands with the containing "contentCenter" div. Just need to confirm this works in the majority of browsers now. I've only tested it in IE9 so far.