Home >Web Front-end >CSS Tutorial >CSS: Detailed explanation of how to use marker-offset

CSS: Detailed explanation of how to use marker-offset

黄舟
黄舟Original
2017-06-29 13:57:392988browse

CSSPropertiesmarker-offset

In:Web Design by Ailin marker-offset

Version: CSS2 Compatibility: NoneInheritance: Yes

Marker-offset can be followed by auto or length

Among them,

auto: The browser automatically sets the spacing

length: A length value consisting of a floating point number and a unit identifier. Can be negative. See length unit

 Marker-offset description:

Sets or retrieves the horizontal padding between the marker container and the main container. That is, the distance between the two adjacent sides of the container.

Currently IE5.5 does not support this attribute.

The corresponding script feature is markerOffset. Please see other books I have written.

Marker-offset code example:

  li:before { display: marker; marker-offset: 5px; }

Syntax:

marker-offset: auto | length

Parameters:

auto: The browser automatically sets the spacing
length: A length value composed of a floating point number and a unit identifier. Can be negative. See length unit

Description:

Sets or retrieves the horizontal padding between the mark container and the main container. That is, the distance between the two adjacent sides of the container.
Currently IE5.5 does not support this attribute.
The corresponding script feature is markerOffset. Please see other books I have written.

Example:

li:before { display: marker; marker-offset: 5px; }

The above is the detailed content of CSS: Detailed explanation of how to use marker-offset. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn