CSS list-style Property
Complete CSS Reference
Definition
The list-style property is a shorthand property for setting all the properties for a list in one
declaration.
Inherited: Yes
JavaScript Syntax
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.listStyle="decimal inside"
In our HTML DOM tutorial you can find more details about the
listStyle property.
In our HTML DOM tutorial you can also find a full
Style Object Reference.
Example
ul
{
list-style: disc outside
}
ol
{
list-style: decimal inside
}
|
Possible Values
| Value |
Description |
list-style-type
list-style-position
list-style-image |
Sets the properties for a list. Default value: Not
defined |
Try-It-Yourself Demos
All list properties in one
declaration
This example demonstrates a shorthand property for setting all of the properties
for a list in one declaration.
Complete CSS Reference
Unlimited Disk and Transfer Hosting - New from Go Daddy!
Go Daddy Unlimited Hosting is the reliable, cost-effective
choice for site owners who want superior speed and reliability.
Available for Linux or Windows, our Unlimited Hosting accounts
come with unlimited disk space and bandwidth, 1,000 email
accounts, 50 MySQL Databases, a FREE SSL Certificate and over
50 FREE downloadable applications and utilities available through
our exclusive Hosting Connections. Count on the world’s largest
hostname provider to keep your site up and running—even when you’re not!
Take the uncertainty out of Web hosting and let GoDaddy.com
put service, performance and value back in. No matter which
hosting type or plan you choose, your site receives 24/7
maintenance and protection in our world-class data center.
Virtual Dedicated, Dedicated Server and unlimited plans also available.
Save 10% on web hosting - Enter code w3tenoff at checkout
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|