The Holy Grail Layout is a classic CSS problem with various solutions presented over time. Many people are searching for the best method and several goot templates are presented.
Most CSS solutions for Holy Grail aim to meet a few goals:
And one of the most classic templates is like this:
See the Pen Classic Holy Grail by loconomo (@dontry018) on CodePen.
We can see that how float:left and nagative margin-left are used to let sidebars stick aside. Besides combining padding-bottom: 999px, margin-bottom: -999px, it is able to make the same height for all columns.However, it is not adaptive enough because the main content part need to be set a pair of fixed padding values.
Then the Taobao UED create a more adaptive and advanced version of this classic layout.
See the Pen Wings Layout by loconomo (@dontry018) on CodePen.