Action | Code | |||
---|---|---|---|---|
Capital Letters Instead Of Bullets | <ul type=A> | |||
Circles As Bullets | ul{list-style-type:circle;} | |||
Discs As Bullets | ul{list-style-type:disc;} | |||
Images As Bullets | ul{list-style-image:url('square.gif');} | |||
Roman Numerals Instead Of Bullets | ol{list-style-type:upper-roman;} | |||
Squares As Bullets | ul{list-style-type:square;} | |||
Custom Bullets | Using CSS, you can define a custom bullet using code like this:
This will produce the bullet list shown below: This technique uses the CSS property "list-style-image," which defines the URL where our GIF image is located. If you wanted to define the location of our GIF using an absolute URL, you would write the UL tag like this:
Note that there's at least one disadvantage to using custom bullets like this: you can't define HEIGHT and WIDTH attributes for the image. |