ok what i am after is three divs side by side all the same height, no matter what the divs content. be it that div one has 4 lines of text, div 2 have 8 lines of text and div 3 has 12 lines of text. all of them will be the same height and have different coloured backgrounds.
can anyone suggest how I do this correctly?
Code:<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to our web site</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"><!-- body { border: 0em solid #000; background-color: #ddd; } .bodyContainer { background-color: orange; padding: 0em 0em 0em 0em; width: 45em; border-top-left-radius: 1.125em; border-top-right-radius: 1.125em; overflow: hidden; position: relative; } .menu { background: green; padding: 0.313em 0em 0.313em 0em; border-top-left-radius: 1.125em; border-top-right-radius: 1.125em; text-align: center; font-size: 1.1em; } .leftSidePanel { background-color: blue; padding: 0.313em 0.625em 0em 0.625em; float: left; width: 10em; } .mainContent { background-color: lightblue; padding: 0.625em 0.625em 0.625em 0.625em; width: 20em; border-left: 0.5em solid purple; border-top: 0.3em solid purple; border-right: 0.5em solid purple; border-top-left-radius: 1.125em; border-top-right-radius: 1.125em; text-align: center; float: left; height: 100%; } .formWrapper{ padding: 0em; text-align: left; border-top-left-radius: 1.125em; border-top-right-radius: 1.125em; } .rightSidePanel { background-color: yellow; padding: 0.313em 0.713em 0em 0.313em; float: right; width: 10em; } .footer { background-color: #ddd; padding: 1em 0em 0em 0em; text-align: center; font-size: 0.875em; } .clearfloat { clear: both; } --></style> </head> <body> <!-- bodyContainer start --> <div class="bodyContainer"> <!-- menu start --> <div class="menu"> <div class="clearfloat"></div> </div> <div class="clearfloat"></div> <!-- menu end --> <div class="leftSidePanel"> <br><br>blah<br><br>blah<br><br>blah<br><br>blah <br><br>blah<br><br>blah </div> <!-- mainContent start --> <div class="mainContent"> <div class="formWrapper"> <br><br>blah<br><br>blah<br><br>blah<br><br>blah<br><br>blah </div> </div> <!-- mainContent end --> <div class="rightSidePanel"> <br><br><br><br>blah<br>blah<br><br>blah<br><br>blah </div> <!-- Footer start --> <br class="clearfloat"> <div class="footer"> some text </div> </div> <!-- body container end --> </body> </html>


Reply With Quote

Bookmarks