Set Your Holy Grail on a False Table

Attain the holiest of holies (circa 2006) via display: table; and using the values of the direction property

There are many hack-ish ways to attain the Holy Grail and this is one more. By wrapping the first and second column in a container assigned direction: rtl; we can put the main content of our page before everything else (just remember to give the two wrapped columns a direction value of ltr ).

But what about equal height columns? That where display: table; comes in. Using this as the display property for the wrapping element of all three columns we can make sure that column three and the container element for columns one and two are of equal height by giving them the property of display: table-cell .

“But if the columns one and two wrapper is set to display: table-cell; how do we get those two columns to be of equal height to column three? You can't give an element a height of 100% when its parent is set to table display”

Carnsarnit! I didn't think about that. What if I set the height of columns one and two to 100vh or 100vmin?

“Well, you could do that, but that seems like a pretty hack-ish thing to do and it will probably create some bugs somewhere down the line in develop…”

Quiet you! Stop stepping on my dreams!

“You're dreams are to create a sketchy layout pattern that would have been popular, like, eight years ago? Pfft! Some dreams.”

You know? my friends were right—marrying you was a huge mistake. HUGE!