Enjoy 20% off all plans by following us on social media. Check out other promotions!

Holy Grail

Ex-Meta Staff Engineer

The Holy Grail layout is a famous CSS page layout that has traditionally been hard to implement. It consists of a header, footer, and three columns. The left column contains navigation items, the middle column contains the page contents, and the right column contains ads.

Holy Grail layout example

Implement the Holy Grail layout using just CSS. You shouldn't need to change the HTML too much.


  • Header
    • Stretches horizontally across the whole page.
    • 60px tall.
  • Columns
    • Both the left and right columns have a fixed width of 100px.
    • The center column is fluid-width.
    • All the columns should have the same height, regardless of which column is the tallest.
  • Footer
    • Stretches horizontally across the whole page.
    • 100px tall.
    • The footer should be at the bottom of the page even if there is not enough content to fill up the viewport height.
View solution