Git Product home page Git Product logo

holy-grail-layout's Introduction

#CSS for Developers

This is part of the CSS for Developers series.

The presentations are also available in PDF together with notes in the /pdf folder. The notes contain links to useful resources and some exercises.

##Holy Grail Layout

The Holy Grail layout is an excellent way to learn the basics of CSS layout.

We are going to implement the Holy Grail layout. The HG layout is a historic web site layout problem. The requirement is a fluid layout that has a width header, and footer and a main content area comprising three columns (navigation, content, aside). The header and footer should move with the content when scrolled vertically - in other words they are not fixed in position.

There are many solutions with mixed results

Holy Grail Layout

One of the original Holy Grail layout articles: A List Apart - Holy Grail

We’ll tackle the problem by first attempting to solve it using traditional (“old school”) CSS, then we’ll update our CSS using SCSS to learn some of the simple and useful features. We also solve the problem without flexbox. Finally we’ll solve the problem using modern CSS and HTML by using flexbox.

The Holy Grail layout is not really that useful today as designs have progressed and adapted to needs of varied devices.

##SCSS (Sass)

To work with the SCSS examples you require a SCSS pre-processor. Popular IDEs support SCSS via plug-ins. Alternatively you can install Node and use a Gulp task.

holy-grail-layout's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.