css how to set a list with square items

藏色散人
Release: 2022-12-30 11:12:31
Original
5593 people have browsed it

How to set a list with square items in css: First create an HTML sample file; then use the ul unordered list tag and specify "list-style-type" as "square" to set it with List of square items.

css how to set a list with square items

The operating environment of this tutorial: Windows 7 system, HTML5&&CSS3 version, DELL G3 computer.

Recommended: css video tutorial

css How to set up a list with square items?

To set a list of square items we need to use the ul unordered list tag and specify list-style-type as square.

Example:

// css
ul.square {
    list-style-type:square; /* 每一项前都是正方形 */
}
// html
  • eight
  • glasses
  • of
  • water
Copy after login

Effect:

css how to set a list with square items

The following are some commonly used list styles: (Recommended learning: CSS video tutorial)




    
    Document
     

  • 1
  • 2
  • 3
  • 1
  • 2
  • 3
  1. 1
  2. 2
  3. 3
  1. 1
  2. 2
  3. 3
Copy after login

Effect:

css how to set a list with square items

The above is the detailed content of css how to set a list with square items. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!