So, this is done here with divs, absolute positioning in%, and here is the part that you donβt like, with a certain height specified in pixels. The problem is that if you use table cells (td), td has no height, and so any element inside will calculate 0 for 100% height.
When we use a div, the problem is different. We can make sure that they retain their height property, but there is no way to tell the div on the left, "be the same height as the div in the center." At least I donβt know. At the same time, it seems that your flash object is the highest thing, and you can easily set the height of all three divs in the ideal number of pixels. Then stretch the ul navigation list to a height of 100% of the div enclosed in it.
There is another way to do this, which can satisfy your needs better, I will tell you in detail at the very bottom.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>TheDavidFactor Layout</title> <style type="text/css"> body, html { background: black; width:100%; height:100%; padding:0; margin:0; } #left { position:absolute; top:10%; left:0; background: #eeeeee; width: 20%; padding: 2%; margin:0; } #right { position:absolute; top:10%; left:76%; background: #eeeeee; width: 20%; padding: 2%; margin:0; } #center { position:absolute; top:10%; left:24%; background: #dddddd; width: 48%; padding: 2%; margin:0; } #flash { background:red; width: 500px; height: 500px; padding:0; margin:0; } ul { height: 500px; padding:0; margin:0; padding-left:25px; background: #4359ac; color: #ffffff; } li { height: 10%; padding:0; margin:0; } </style> </head> <body> <div id="left"> <ul> <li>Spa</li> <li>Hotel</li> <li>Activities</li> <li>Hobbies</li> <li>Night Life</li> <li>Food</li> <li>Feedback</li> <li>Contact</li> <li>About Us</li> <li>Copyright</li> </ul> </div> <div id="center"> <div id="flash">Here your flash Object</div> </div> <div id="right"> here the right div <br> <p>Let throw some random text in here to take up space for now.</p> </div> </body> </html>
Another option you have is to wrap three columns in a container div and determine the height for that div, and then stretch each of the columns to 100% height inside that div container.
Costa source share