How CSS makes Li 4-line display

Source: Internet
Author: User
Today Spring Brother Technology blog and everyone to share under the development of the front-end, or the imitation of the station, sometimes it is easy to encounter the Product List page display dislocation, such as the original 4 line display, the result has become 3 lines display, it is difficult to see.
It turns out that your CSS doesn't control well.
A netizen asks: How CSS controls ul li each line displays several and wraps like the table effect.
Today, Brother Chun to tell you: we look at the following code, what found:

. column. col-4-1 {
width:22.75%;
margin-right:3%;
}

. column. col-4-1 {
width:22%;
margin-right:3%;
}

Obviously the second one is possible, and we have to set the ratio within the 100% range.

This article from the Spring Brother Technology blog Official website, reproduced please indicate the source, thank you!

How CSS makes Li 4-line display

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.