How To Display Unordered List In Two Columns - W3docs
Có thể bạn quan tâm
- Password Generator
- HTML Editor
- HTML Encoder
- Base 64
- Code Diff
- JSON Beautifier
- CSS Beautifier
- Markdown Convertor
- Find the Closest Tailwind CSS Color
- Phrase encrypt / decrypt
- Browser Feature Detection
- Number convertor
- JTW Decoder
- CSS Maker
- CSS Maker text shadow
- CSS Maker Text Rotation
- CSS Maker Out Line
- CSS Maker RGB Shadow
- CSS Maker Transform
- CSS Maker Font Face
- Color Picker
- Colors CMYK
- Colors HWB
- Colors HSL
- Color Hex
- Color mixer
- Color Converter
- Colors RGB
- Color Contrast Analyzer
- Color Gradient
- String Length Calculator
- MD5 Hash Generator
- Sha256 Hash Generator
- String Reverse
- URL Encoder
- URL Decoder
- Base 64 Encoder
- Base 64 Decoder
- Extra Spaces Remover
- String to Lowercase
- String to Uppercase
- Word Count Calculator
- Empty Lines Remover
- HTML Tags Remover
- Binary to Hex
- Hex to Binary
- Rot13 Transform on a String
- String to Binary
- Duplicate Lines Remover
- Dark
- Light
- System
- Books
- Learn HTML
- Learn CSS
- Learn Git
- Learn Javascript
- Learn PHP
- Learn python
- Learn Java
- How To
- How To NodeJs
- How To Linux
- How To AngularJs
- How To PHP
- How To HTML
- How To CSS
- How To Symfony
- How To Git
- How To Apache
- How To JavaScript
- How To Java
- How To Vue.js
- How To Python
- Snippets
- HTML
- How to Display Unordered List in Two Columns
In this tutorial, you can see how to display an unordered list in two columns with a little CSS. We’ll demonstrate examples with the CSS columns and column-count properties.
Create HTML
- Use the <ul> element for an unordered list and add <li> elements.
Add CSS
- Use the columns property and specify “2” as a value. Also, add the -webkit- and -moz- prefixes.
Example of displaying an unordered list in two columns with the columns property:
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; } </style> </head> <body> <ul> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> </ul> </body> </html> Try it Yourself »Result
- Some text
- Some text
- Some text
- Some text
- Some text
- Some text
Example of displaying an unordered list in two columns with the column-count property:
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> ul { column-count: 2; column-rule: dotted 1px #333; list-style-type: none; } </style> </head> <body> <ul> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> <li>Some text</li> </ul> </body> </html> Try it Yourself » Tags lists css htmlRelated Resources
- How to Remove, Replace or Style List Bullets with Pure CSS
- How to Adjust the Position of List Style Image
- How to Make the Cursor a Hand When Hovering Over a List Item
- PHP basics
- HTML Basics
- Javascript Basics
- CSS Basics
- ES6 Basics
- TypeScript Basics
- React Basics
- Angular Basics
- Sass Basics
- Git Basics
- Vue.js Basics
- SQL Basics
- Python Basics
- Java Basics
- NodeJS Basics
Từ khóa » Html Css Two Column List
-
How To Create A Two Column Layout - W3Schools
-
CSS Multiple Columns - W3Schools
-
How To Display An Unordered List In Two Columns? - Stack Overflow
-
Display An Unordered List In Two Columns - HTML CSS CSS Layout
-
An Adventure In CSS With Column Lists | You've Been Haacked
-
Two Column Lists Using HTML - Matt Danner
-
Columns - CSS-Tricks
-
Split List Into Columns Using CSS - Create Two, Three Or Multi-column List
-
Columns - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
-
CSS Multi-column Layout - CSS: Cascading Style Sheets | MDN
-
How To Display A List In N Columns Format ? - GeeksforGeeks
-
Multiple Column Lists Using One
- - CSS Wizardry
-
List In 2 Columns - CodePen
-
How To Make Two Column List Items Using Basic CSS