Use CSS to control the display effect of multiple columns of Div. Ul. Li

Source: Internet
Author: User
Code
1 <style type = "text/CSS">
2. Column {}{ width: 300px; Height: 74px; float: Left ;}
3. Column ul {}{ width: 280px ;}
4. Column Li {}{ width: 100px; float: Left; display: block ;}
5 </style>
6 <Div class = "column">
7 <ul>
Eight <li> 1111111 </LI>
9 <li> 2222222 </LI>
10 <li> 3333333 </LI>
<Li> 4444444 </LI>
12 <li> 5555555 </LI>
13. <li> 6666666 </LI>
14 <li> 7777777 </LI>
15 </ul>
16 </div>

This code is very useful when multiple columns of display control are required. You can adjust the width of each element in CSS to get different display effects. Copy the code to the webpage and run it to see how it works !!!

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.