- Mastering CSS
- Rich Finelli
- 169字
- 2021-07-08 09:45:56
Creating a multicolumn layout
Floats were designed to flow text around an image. However, floats are also the most common way of building a multicolumn layout. In this section, we'll look at how to float elements next to each other in order to create a page layout.
So, what we currently have in the HTML in the secondary section are three div tags with a class of column:

The following screenshot illustrates the final site. This is what we're aiming for. We want three equal columns with a small gutter or margin in between:

In our current site, columns are stacked on top of one another. Right now, we have simple rows, so we want to fix that using floats. In our final site, we want to have everything centered in the middle of the page, but right now, all of our content goes from one edge of the browser window to pretty much the opposite edge of the browser window:

Let's fix this by centering our div tags.
- Expert C++
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- WildFly:New Features
- Java 開發從入門到精通(第2版)
- Learning Selenium Testing Tools with Python
- PowerCLI Cookbook
- 實用防銹油配方與制備200例
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 青少年信息學競賽
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- 跟戴銘學iOS編程:理順核心知識點
- Learning Concurrency in Python
- HTML5游戲開發實戰
- C/C++代碼調試的藝術(第2版)
- 安卓工程師教你玩轉Android