Friday, 25 May 2012

Divs with equal height

This is my simple solution of equal height divs without any hacks.


Basic idea was simple solution of same height problem. This is my solution:

  • 5 divs
  • No css hacks
  • Image slider inspired
  • Div with class same-height-wrap-full represents color of right column
  • Div with class same-height-menu-column represents color of left column
  • Div with class same-height-wrap-inner is viewport for columns content
  • Div with class menu-column is content of left column
  • Div with class content-column is main content of page (right column)


<!-- This is background of main content -->
<div class="same-height-wrap-full">
    <!-- This is backgroun of aside content -->
    <div class="same-height-menu-column">
        <!-- Viewport for columns -->
        <div class="same-height-wrap-inner">
            <!-- Menu column -->
            <div class="menu-column">
            <!-- Content column -->
            <div class="content-column">


.same-height-wrap-inner:after {

.same-height-wrap-inner:after {
.same-height-wrap-inner {

    margin10% auto;


No comments:

Post a Comment