The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Generated Content |
| Previous Style: margin-top | Next Style: marks |


marker-offset

Specifies the horizontal distance between a marker box and the box of its associated element.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported
Notes:
  • A marker is a bullet or number associated with an element. The marker is a separate object and has its own rendering box, called a marker box.
  • You set up a marker by setting the display property to marker.

See Also:

display

Possible Values:

auto
The browser figures out the distance between the marker box and the element box.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

length
A specific distance between the marker box and the element box.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • You can use negative numbers.

Example:
<STYLE TYPE="text/css">
<!--
LI:before {display: marker;
           marker-offset: 5px;
           content: counter(topten);
           counter-increment: topten;}
-->
</STYLE>

| Index | Current Category: Generated Content |
| Previous Style: margin-top | Next Style: marks |