Hi, In the design (code below) I am trying to get the edging to start right at the top, instead of under the 'Top-Bar' section. Also, I am trying to get the height of 'Main-Cell' and the two edges to be 100% of the window, and to extend as content is added, along with the edging. I'm still learning CSS (clearly lol) and this is one problem that keeps cropping up and i can't seem to get anywhere with it. If anyone can help i'd appreciate it! I can't seem to get around it no matter what I do :/ Thanks guys! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Design</title> <style type="text/css"> body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #F1F1F1; } .Main-Cell { background-color: #FFFFFF; height: 400px; width: 710px; float: none; clear: both; } .Border-Left { height: 400px; width: 5px; float: left; border: 1px solid #E5E5E5; background-color: #F1F1F1; } .Top-Bar { background-color: #E5E5E5; height: 80px; width: 700px; top: 0px; display: block; left: 15px; right: 15px; bottom: auto; } .Border-Right { height: 400px; width: 5px; float: right; background-color: #F1F1F1; border: 1px solid #E5E5E5; } </style> </head> <body> <div align="center"> <div class="Main-Cell"> <div class="Top-Bar"></div> <div class="Border-Right"></div> <div class="Border-Left"></div> </div> </div> </body> </html> PHP:
Hi, Thanks for your help, I got that working and have uploaded that now. Bit weird that even though it has the position information, you still have to baby feed it (to a certain extent) as to where it needs to go. Do you know how I can make it stretch 100% vertically (and beyond if the content calls for it). I have found some tutorials online about it but i've never actually had any luck putting them into practice. Many thanks,
100% height is a real issue in CSS... I *think* it's the "Box Model Hack" that you need to use... (I'm really not 100% sure though) http://www.google.co.uk/search?q=100%+height+CSS I'll tell you now that it's a complete nightmare.