CSS Web Layout
Web Layout
There are many ways to lay out web pages, generally divided into the following parts:Header area, menu navigation area, content area, footer area。

Header area
The header area is located at the top of the entire webpage and is generally used to set the title or logo of the webpage:
CSS3 Examples
Try it Yourself »
Menu navigation area
The menu navigation bar contains some links that can guide users to browse other pages:
CSS3 Examples
Try it Yourself »
Content area
The content area generally has three forms:
- 1 column: generally used for mobile devices
- 2 columns: generally used for tablet devices
- 3 columns: generally used for PC desktop devices

We will create a 3-column layout that will become a 1-column layout on small screens (responsive):
CSS3 Examples
Try it Yourself »
Tip:To set two columns, you can set width to 50%. To create 4 columns, you can set it to 25%.
Tip:If you want to learn more about @media rules, you can checkCSS3 Media Queries。
Tip:A more advanced way now is to use CSS Flexbox to create column layouts, but Internet Explorer 10 and earlier versions do not support this method. IE6-10 can use the float method.
For more content on CSS Flexbox, you can checkCSS3 Flexible Box (Flex Box)。
Unequal columns
For unequal columns, the content area is generally set in the middle part, which is also the largest and most important. The left and right sides can be used for navigation and other related content. The total width of these three columns is 100%.
CSS3 Examples
Try it Yourself »
Footer area
The footer area is at the very bottom of the webpage and generally contains copyright information, contact information, etc.
CSS3 Examples
Try it Yourself »
Responsive web layout
Through the above learning, let's create a responsive page. The page layout will adjust according to the size of the screen:
CSS3 Examples
Try it Yourself »