In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The knowledge of this article "how to use CSS to achieve multi-column layout" is not understood by most people, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use CSS to achieve multi-column layout" article.
Summary:
Multi-column layout is also common in website applications. Share 4 multi-column layouts today.
Display:table
Copy the code
The code is as follows:
.table {
Width: auto
Min-width: 1000px
Margin: 0 auto
Padding: 0
Display:table
}
.tableRow {
Display: table-row
}
.tableCell {
Border: 1px solid red
Display: table-cell
Width: 33%
}
One
Two
Three
Float
Copy the code
The code is as follows:
.row {
Float: left
Width: 33%
Border: 1px solid red
}
One
Two
Three
Display: inline-block
Copy the code
The code is as follows:
.row {
Display: inline-block
Width: 32%
Border: 1px solid red
}
One
Two
Three
Column-count
Copy the code
The code is as follows:
.column {
/ * set the number of columns * /
-moz-column-count:3; / * Firefox * /
-webkit-column-count:3; / * Safari and Chrome * /
Column-count:3
/ * set the spacing between columns * /
-moz-column-gap:40px; / * Firefox * /
-webkit-column-gap:40px; / * Safari and Chrome * /
Column-gap:40px
/ * set rules between columns * /
-moz-column-rule:4px outset # ff0000; / * Firefox * /
-webkit-column-rule:4px outset # ff0000; / * Safari and Chrome * /
Column-rule:4px outset # ff0000
}
The above is about the content of this article on "how to use CSS to achieve multi-column layout". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.