• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Css » Tutorial » CSS Styling Lists
Next →
← Prev

CSS Styling Lists

By Dinesh Thakur

List properties are used to control the styling of list elements such as presentation of number and bulleted list, markers used for list items as well as their positions. All the list properties can either be used on <ul> and <ol> elements or an<li> element only.

We’ll be covering the following topics in this tutorial:

  • CSS List·Style·Type
  • CSS List-Style-Image
  • CSS List-Style-Position

CSS List·Style·Type

The LIST-STYLE-TYPE property allows changing the appearance of the list item marker. In case of unordered list, the values that this property can hold are none, disc (default), circle and square. In case of ordered list, the values that this property can hold are decimal, decimal leading-zero, lower-alpha, upper-alpha, lower-roman, upper-roman. For example:

Li {List-Style-Type: square;}

CSS List-Style-Image

The LIST-STYLE-IMAGE property allows you to set an image for the list item marker. It is ideal for situations when you want to use customized list markers. If an image is unavailable, the image marker defined in list-style-type will be used. The possible values that can set to this property are none or URL of an image. For example:

Li{list-style-image : url(floppy.gif);}

CSS List-Style-Position

The LIST-STYLE-POSITION property is used to specify the list item marker i.e. whether it should be inside or outside of the box containing <list> element. The possible values that can be assigned to its are inside or outside (default). For example:

ul{list-style-position : inside;} 
 ol{list-style-position : outside;}

 CSS List-Style

The LIST -STYLE property is a shorthand property used to set all the three list-style Properties in a single statement in any order. If you do not explicitly specify any of these properties then they assume their default values. For examples:

Ul{list-style : circle inside url(floppy.gif);}

We shall now consider an example showing list properties.

You’ll also like:

  1. CSS Styling Tables
  2. HTML UL – Unordered lists – Bulleted lists
  3. CSS margin property
  4. CSS padding property
  5. CSS background property
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

CSS Tutorials

CSS Tutorials

  • CSS - Font Property
  • CSS - Background Property
  • CSS - CSS - Border-Style Property
  • CSS - Text-Decoration Property
  • CSS - Tables
  • CSS - Position
  • CSS - Syntax and Selectors
  • CSS - List
  • CSS - Margin
  • CSS - Padding

Other Links

  • CSS Tutorials - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW