Home > Article > Web Front-end > CSS: Detailed explanation of how to use marker-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!