CSS overflow-clip-margin Property
Example
div {
border: 3px solid black;
width: 150px;
height: 100px;
overflow: clip;
overflow-clip-margin: 20px;
}
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Meaning:
The overflow-clip-margin CSS property determines how far outside its bounds an element with overflow: clip; may be painted before being clipped.
Note: If the element does not have overflow: clip then this property will be ignored.
Default value: | 0px |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
overflow-clip-margin: length|initial|inherit|revert|revert-layer|unset;
Browser Support
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
length | Specifies length in px, em, cm... |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
overflow-clip-margin: 0px;
}