• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

15.9. marker-offset Property

The marker-offset property is designed to create some extra “space” at the beginning of a list item. Some generated content may go outside of the normal bounds of the markers for most list items, so the marker-offset property gives Web authors the leeway of adding extra room to accommodate the expanded marker. However, this property has never been supported by any browser, and has since been deprecated in CSS3. As such, it is a bit of a “white elephant.”

marker-offset takes three different values: a numerical length value, the named value auto (which uses the browser's default value for spacing markers from the content of the list item), and inherit (which assigns the parent value for marker-offset). The sample code from the property listing provides a good example of marker-offset at work. It is set to a value of 5em, which means that it is offset by a space equal to 5 em in the font that is being used. This should provide ample room in which generated content can appear due to the associated content property.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint