Search completed in 1.19 seconds.
border-inline-end - CSS: Cascading Style Sheets
The border-
inline-end CSS property is a shorthand property for setting the individual logical
inline-end border property values in a single place in the style sheet. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Constituent properties This property is a shorthand for the following CSS properties: border-
inline-end-color border-
inline-end-style border-
inline-end-width Syntax border-
inline-end: 1px; border-
inline-end: 2px dashed; border-
inline-end: medium dashed blue; The physical border to which border-
inline-end maps depends on the element's writing mode, directionality, and text orientation. It corresponds t...
...See border-width. <'border-style'> The line style of the border. See border-style...
...See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. Formal definition Initial valueas each of t...
...And 5 more matches
margin-inline-end - CSS: Cascading Style Sheets
The margin-
inline-end CSS property defines the logical inline end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. In other words, it corresponds to the margin-top, margin-right, margin-bottom or margin-left property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...margin-right, margin-bottom or margin-left property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ margin-
inline-end: 10px; /* An absolute length */ margin-
inline-end: 1em; /* relative to the text size */ margin-
inline-end: 5%; /* relative to the nearest block container's width */ /* Keyword values */ margin-
inline-end: auto; /* Global values */ margin-
inline-end: inherit; margin-
inline-end: initial; margin-
inline-end: unset; It relates to margin-block-start, margin-block-end, and margin-inline-start, which define the other margins of the element. ...
...And 3 more matches
padding-inline-end - CSS: Cascading Style Sheets
The padding-
inline-end CSS property defines the logical inline end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...adding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...g depending on the element's writing mode, directionality, and text orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ padding-
inline-end: 10px; /* An absolute length */ padding-
inline-end: 1em; /* A length relative to the text size */ /* <percentage> value */ padding-
inline-end: 5%; /* A padding relative to the block container's width */ /* Global values */ padding-
inline-end: inherit; padding-
inline-end: initial; padding-
inline-end: unset; Values The padding-
inline-end property takes the same values as the padding-left property. Description This property corresponds...
...And 2 more matches
border-inline-end-width - CSS: Cascading Style Sheets
The border-
inline-end-width CSS property defines the width of the logical
inline-end border of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width, border-right-width, border-bottom-width, or border-left-width property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...bottom-width, or border-left-width property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-
inline-end-width: 2px; border-
inline-end-width: thick; Related properties are border-block-start-width, border-block-end-width, and border-inline-start-width, which define the other border widths of the element. Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Value...
... Editor's Draft Initial definition ...
... Editor's Draft Initial definition ...
inset-inline-end - CSS: Cascading Style Sheets
The inset-
inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation. /* <length> values */ inset-
inline-end: 3px; inset-
inline-end: 2.4em; /* <percentage>s of the width or height of the containing block */ inset-
inline-end: 10%; /* Keyword value */ inset-
inline-end: auto; /* Global values */ inset-
inline-end: inherit; inset-
inline-end: initial; inset-
inline-end: unset; The shorthand for inset-inline-start and inset-
inline-end is inset-inline. ...
... values */ inset-
inline-end: 3px; inset-
inline-end: 2.4em; /* <percentage>s of the width or height of the containing block */ inset-
inline-end: 10%; /* Keyword value */ inset-
inline-end: auto; /* Global values */ inset-
inline-end: inherit; inset-
inline-end: initial; inset-
inline-end: unset; The shorthand for inset-inline-start and inset-
inline-end is inset-inline. Syntax Values The inset-
inline-end property takes the same values as the left property. Formal definition Initial valueautoApplies topositioned elementsInheritednoPercentageslogical-width of containing blockComputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalAnimation typea length, percentage or calc(); Formal syntax <'top'> Examples Setting inline end offset HTML <div> ...
... Editor's Draft Initial definition ...
... Editor's Draft Initial definition ...
scroll-margin-inline-end - CSS: Cascading Style Sheets
The scroll-margin-
inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...ding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-
inline-end: 10px; scroll-margin-
inline-end: 1em; /* Global values */ scroll-margin-
inline-end: inherit; scroll-margin-
inline-end: initial; scroll-margin-
inline-end: unset; Values <length> An outset from the inline end edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length>...
...ler > div:nth-child(2n) { background-color: #fff; color: #663399; } The most relevant part here is scroll-snap-align: end, which specifies that the right-hand edges (the "ends" along the x axis, in our case) are the designated snap points. Last of all we specify the scroll margin values, a different one for the second and third child elements: .scroller > div:nth-child(2) { scroll-margin-
inline-end: 1rem; } .scroller > div:nth-child(3) { scroll-margin-
inline-end: 2rem; } This means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the inline end edge of the second <div>, and 2rems outside the inline end edge of the third <div>. Result Try it for yourself: Specifications Specification Status Comment CSS Scroll Sn...
...-margin-
inline-end: 2rem; } This means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the inline end edge of the second <div>, and 2rems outside the inline end edge of the third <div>. Result Try it for yourself: Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-
inline-end' in that specification. Candidate Recommendation Initial definition ...
border-inline-end-color - CSS: Cascading Style Sheets
The border-
inline-end-color CSS property defines the color of the logical
inline-end border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color, border-right-color, border-bottom-color, or border-left-color property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...r, border-right-color, border-bottom-color, or border-left-color property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax border-
inline-end-color: rebeccapurple; border-
inline-end-color: #663399; Related properties are border-block-start-color, border-block-end-color, and border-inline-start-color, which define the other border colors of the element. Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Values <'color'> The color of the border. See color. Formal definiti...
...lor. Formal definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examples HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow; width: 120px; height: 120px; } .exampleText { writing-mode: vertical-lr; border: 10px solid blue; border-
inline-end-color: red; } Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'border-
inline-end-color' in that specification. Editor's Draft Initial definition ...
border-inline-end-style - CSS: Cascading Style Sheets
The border-
inline-end-style CSS property defines the style of the logical inline end border of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style, border-right-style, border-bottom-style, or border-left-style property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...bottom-style, or border-left-style property depending on the values defined for writing-mode, direction, and text-orientation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-
inline-end-style: dashed; border-
inline-end-style: dotted; border-
inline-end-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-start-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed va...
... border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Examples HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow; width: 120px; height: 120px; } .exampleText { writing-mode: vertical-lr; border: 5px solid blue; border-
inline-end-style: dashed; } Results Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'border-
inline-end-style' in that specification. Editor's Draft Initial definition ...
scroll-padding-inline-end - CSS: Cascading Style Sheets
The scroll-padding-
inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targetted element and the edges of the scrollport. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...tioned toolbars or sidebars) or simply to put more breathing room between a targetted element and the edges of the scrollport. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* Keyword values */ scroll-padding-
inline-end: auto; /* <length> values */ scroll-padding-
inline-end: 10px; scroll-padding-
inline-end: 1em; scroll-padding-
inline-end: 10%; /* Global values */ scroll-padding-
inline-end: inherit; scroll-padding-
inline-end: initial; scroll-padding-
inline-end: unset; Values <length-percentage> An inwards offset from the inline end edge of the scrollport, as a valid length or a percentage. auto The offs...
... Candidate Recommendation Initial definition ...
Logical properties for floating and positioning - CSS: Cascading Style Sheets
oned layout. This guide takes a look at how to use these. Mapped properties and values The table below details the properties and values discussed in this guide along with their physical mappings. They assume a horizontal writing-mode, with a left-to-right direction. ...
... The table below details the properties and values discussed in this guide along with their physical mappings. They assume a horizontal writing-mode, with a left-to-right direction. ...
...ong with their physical mappings. They assume a horizontal writing-mode, with a left-to-right direction. Logical property or value Physical property or value float: inline-start float: left float:
inline-end float: right clear: inline-start clear: left clear:
inline-end clear: right inset-inline-start left inset-
inline-end right inset-block-start top inset-block-end bottom text-align: start text-align: left text-align: end text-align: right In addition to these mapped properties there are some additional shorthand properties made possible by being able to address block and inline dimensions. These have no mapping to physical properties, aside from the inset ...
...And 2 more matches
CSS reference - CSS: Cascading Style Sheets
tyleborder-block-start-widthborder-block-styleborder-block-widthborder-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-end-end-radiusborder-end-start-radiusborder-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-inlineborder-inline-colorborder-
inline-endborder-
inline-end-colorborder-
inline-end-styleborder-
inline-end-widthborder-inline-startborder-inline-start-colorborder-inline-start-styleborder-inline-start-widthborder-inline-styleborder-inline-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-start-end-radiusborder-start-start-ra...
...tgrid-rowgrid-row-endgrid-row-startgrid-templategrid-template-areasgrid-template-columnsgrid-template-rowsHHzhanging-punctuationheightheight (@viewport)@historical-forms:hoverhsl()hsla()hue-rotate()hyphensI<ident><image>image()image-orientationimage-renderingimage-set()@importin:in-range:indeterminateinheritinitialinline-sizeinsetinset()inset-blockinset-block-endinset-block-startinset-inlineinset-
inline-endinset-inline-start<integer>:invalidinvert()isolationJjustify-contentjustify-itemsjustify-selfKkHz@keyframesL:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percentage>letter-spacingline-breakline-heightlinear-gradient():linklist-stylelist-style-imagelist-style-positionlist-style-typelocal()Mmarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemarg...
...et-inline-start<integer>:invalidinvert()isolationJjustify-contentjustify-itemsjustify-selfKkHz@keyframesL:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percentage>letter-spacingline-breakline-heightlinear-gradient():linklist-stylelist-style-imagelist-style-positionlist-style-typelocal()Mmarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemargin-
inline-endmargin-inline-startmargin-leftmargin-rightmargin-top::markermarks (@page)maskmask-bordermask-border-modemask-border-outsetmask-border-repeatmask-border-slicemask-border-sourcemask-border-widthmask-clipmask-compositemask-imagemask-modemask-originmask-positionmask-repeatmask-sizemask-typematrix()matrix3d()max()max-block-sizemax-heightmax-height (@viewport)max-inline-sizemax-widthmax-width (@viewport...
...And 2 more matches
clear - CSS: Cascading Style Sheets
ways be able to resize, so that it contains floating elements inside it, you need to self-clear its children. This is called clearfix, and one way to do it is to add clear to a replaced ::after pseudo-element on it. #container::after { content: ""; display: block; clear: both; } Syntax /* Keyword values */ clear: none; clear: left; clear: right; clear: both; clear: inline-start; clear:
inline-end; /* Global values */ clear: inherit; clear: initial; clear: unset; Values none Is a keyword indicating that the element is not moved down to clear past floating elements. left Is a keyword indicating that the element is moved down to clear past left floats. right Is a keyword indicating that the element is moved down to clear past right floats. both Is a keyword indicating that the e...
...s. right Is a keyword indicating that the element is moved down to clear past right floats. both Is a keyword indicating that the element is moved down to clear past both left and right floats. inline-start Is a keyword indicating that the element is moved down to clear floats on start side of its containing block, that is the left floats on ltr scripts and the right floats on rtl scripts. ...
...Phasellus sit amet diam. Duis mattis varius dui. ...
...And 2 more matches
Logical properties for margins, borders and padding - CSS: Cascading Style Sheets
border-bottom border-block-end-color border-bottom-color border-block-end-style border-bottom-style border-block-end-width border-bottom-width border-block-start border-top border-block-start-color border-top-color border-block-start-style border-top-style border-block-start-width border-top-width border-
inline-end border-right border-
inline-end-color border-right-color border-
inline-end-style border-right-style border-
inline-end-width border-right-width border-inline-start border-left border-inline-start-color border-left-color border-inline-start-style border-left-style border-inline-start-width border-left-width ...
... border-inline-start-width border-left-width border-start-start-radius border-top-left-radius border-start-end-radius border-bottom-left-radius border-end-start-radius border-top-right-radius border-end-end-radius border-bottom-right-radius margin-block-end margin-bottom margin-block-start margin-top margin-
inline-end margin-right margin-inline-start margin-left padding-block-end padding-bottom padding-block-start padding-top padding-
inline-end padding-right padding-inline-start padding-left There are also some additional shorthands, made possible because we have the ability to target both block or both inline edges of the box simultaneously...
...style for both inline borders. border-inline-width Sets border-width for both inline borders. margin-block Sets all the block margins. margin-inline Sets all the inline margins. padding-block Sets the block padding. padding-inline Sets the inline padding. Margin examples The mapped margin properties of margin-inline-start, margin-
inline-end, margin-block-start, and margin-
inline-end can be used instead of their physical counterparts. In the example below I have created two boxes and added different sized margins to each edge. I have added an extra container with a border in order to make the margin more obvious to see. One box uses physical properties and the other logical properties. Try changing the direction property to rtl to ...
...d to both. In a horizontal writing mode this CSS would apply a 5px margin to the top of the box and a 10px margin to the bottom. .box { margin-block: 5px 10px; } Note: The shorthand properties margin-inline and margin-block shipped in Firefox 66. As these are new properties check browser support before using. Padding examples The mapped padding properties of padding-inline-start, padding-
inline-end, padding-block-start, and padding-
inline-end can be used instead of their physical counterparts. In the example below I have two boxes, one of which is using physical padding properties and the other logical padding properties. With a writing-mode of horizontal-tb, both boxes should appear the same. Try changing the direction property to rtl to cause the boxes to display in a right-to-left dire...
Animatable CSS properties - CSS: Cascading Style Sheets
border-block-end-width border-block-start border-block-start-color border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-width border-color border-end-end-radius border-end-start-radius border-image-outset border-image-slice border-image-width border-
inline-end border-
inline-end-color border-
inline-end-width border-inline-start border-inline-start-color border-inline-start-width border-left border-left-color border-left-width border-radius border-right border-right-color border-right-width border-start-end-radius border-start-start-radius border-top border-top-color bor...
... flex-basis flex-grow flex-shrink font font-size font-size-adjust font-stretch font-variation-settings font-weight gap grid-column-gap grid-gap grid-row-gap grid-template-columns grid-template-rows height inline-size inset inset-block inset-block-end inset-block-start inset-inline inset-
inline-end inset-inline-start left letter-spacing line-clamp line-height margin margin-block-end margin-block-start margin-bottom margin-
inline-end margin-inline-start margin-left margin-right margin-top mask mask-border mask-position mask-size max-block-size max-height max-inline-size max-lines ...
...ax-width min-block-size min-height min-inline-size min-width object-position offset offset-anchor offset-distance offset-path offset-position offset-rotate opacity order outline outline-color outline-offset outline-width padding padding-block-end padding-block-start padding-bottom padding-
inline-end padding-inline-start padding-left padding-right padding-top perspective perspective-origin right rotate row-gap scale scroll-margin scroll-margin-block scroll-margin-block-end scroll-margin-block-start scroll-margin-bottom scroll-margin-inline scroll-margin-
inline-end scroll-margin-inline-start scroll-m...
... scroll-margin-block-start scroll-margin-bottom scroll-margin-inline scroll-margin-
inline-end scroll-margin-inline-start scroll-margin-left scroll-margin-right scroll-margin-top scroll-padding scroll-padding-block scroll-padding-block-end scroll-padding-block-start scroll-padding-bottom scroll-padding-inline scroll-padding-
inline-end scroll-padding-inline-start scroll-padding-left scroll-padding-right scroll-padding-top scroll-snap-coordinate scroll-snap-destination scrollbar-color shape-image-threshold shape-margin shape-outside tab-size text-decoration text-decoration-color text-decoration-thickness text-emphasis text-emphasis-color text-in...
float - CSS: Cascading Style Sheets
der using styleFloat. This was an exception to the rule, that the name of the DOM member is the camel-case name of the dash-separated CSS name (due to the fact that "float" is a reserved word in JavaScript, as seen in the need to escape "class" as "className" and escape <label>'s "for" as "htmlFor"). Syntax /* Keyword values */ float: left; float: right; float: none; float: inline-start; float:
inline-end; /* Global values */ float: inherit; float: initial; float: unset; The float property is specified as a single keyword, chosen from the list of values below. Values left The element must float on the left side of its containing block. right The element must float on the right side of its containing block. none The element must not float. inline-start The element must float on the st...
...le keyword, chosen from the list of values below. Values left The element must float on the left side of its containing block. right The element must float on the right side of its containing block. none The element must not float. inline-start The element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts. ...
...It is shifted to the left, or right, until it touches the edge of its containing box, or another floated element. In this example, there are three colored squares. ...
...to move below any floated elements. For instance, you may want paragraphs to remain adjacent to floats, but force headings to be on their own line. See clear for examples. Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'float and clear' in that specification. Editor's Draft Adds the values inline-start and
inline-end. CSS Level 2 (Revision 1)The definition of 'float' in that specification. Recommendation No change CSS Level 1The definition of 'float' in that specification. Recommendation Initial definition ...
CSS Logical Properties and Values - CSS: Cascading Style Sheets
line-size Properties for margins, borders and padding border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-color (logical keyword) border-inline border-inline-color border-
inline-end border-
inline-end-color border-
inline-end-style border-
inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-start-start-radius border-start-end-radius border-end-start-radius border-end-end-radius border-style (logical keyword) border-width (logical keyword) margin (log...
...start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-start-start-radius border-start-end-radius border-end-start-radius border-end-end-radius border-style (logical keyword) border-width (logical keyword) margin (logical keyword) margin-block margin-block-end margin-block-start margin-inline margin-
inline-end margin-inline-start padding (logical keyword) padding-block padding-block-end padding-block-start padding-inline padding-
inline-end padding-inline-start Properties for floating and positioning clear (
inline-end and inline-start keywords) float (
inline-end and inline-start keywords) inset inset-block inset-block-end inset-block-start inset-inline inset-
inline-end inset-inl...
...d) padding-block padding-block-end padding-block-start padding-inline padding-
inline-end padding-inline-start Properties for floating and positioning clear (
inline-end and inline-start keywords) float (
inline-end and inline-start keywords) inset inset-block inset-block-end inset-block-start inset-inline inset-
inline-end inset-inline-start Other properties caption-side (
inline-end and inline-start keywords) overflow-block overflow-inline overscroll-behavior-block overscroll-behavior-inline resize (block and inline keywords) text-align (end and start keywords) Deprecated properties offset-block-end (now inset-block-end ) offset-block-start (now inset-block-start ) offset-
inline-end (now inset-
inline-end ) offset-inline-start (now inset-inl...
Mozilla CSS extensions - CSS: Cascading Style Sheets
d] -moz-appearance B -moz-backface-visibility [Prefixed version still accepted] -moz-background-clipObsolete since Gecko 2 -moz-background-originObsolete since Gecko 2 -moz-background-inline-policyObsolete since Gecko 32 [Superseded by the standard version box-decoration-break] -moz-background-sizeObsolete since Gecko 2 -moz-border-end [Superseded by the standard version border-
inline-end] -moz-border-end-color [Superseded by the standard version border-
inline-end-color] -moz-border-end-style [Superseded by the standard version border-
inline-end-style] -moz-border-end-width [Superseded by the standard version border-
inline-end-width] -moz-border-image -moz-border-start [Superseded by the standard version border-inline-start] -moz-border-start-color [Superseded by...
...version still accepted] -moz-column-rule-color [Prefixed version still accepted] -moz-context-properties F-M filter [Applying to more than SVG] -moz-font-feature-settings [Prefixed version still accepted] -moz-font-language-override [Prefixed version still accepted] -moz-hyphens [Prefixed version still accepted] -moz-margin-end [Superseded by the standard version margin-
inline-end] -moz-margin-start [Superseded by the standard version margin-inline-start] mask [Applying to more than SVG] O -moz-opacityObsolete since Gecko 1.9.1 -moz-outlineObsolete since Gecko 1.9.2 -moz-outline-colorObsolete since Gecko 1.9.2 -moz-outline-offsetObsolete since Gecko 1.9.2 -moz-outline-styleObsolete since Gecko 1.9.2 -moz-outline-widthObsolete since Gecko 1.9.2 P -m...
...lete since Gecko 1.9.1 -moz-outlineObsolete since Gecko 1.9.2 -moz-outline-colorObsolete since Gecko 1.9.2 -moz-outline-offsetObsolete since Gecko 1.9.2 -moz-outline-styleObsolete since Gecko 1.9.2 -moz-outline-widthObsolete since Gecko 1.9.2 P -moz-padding-end [Superseded by the standard version padding-inline-start] -moz-padding-start [Superseded by the standard version padding-
inline-end] -moz-perspective [Prefixed version still accepted] -moz-perspective-origin [Prefixed version still accepted] pointer-events [Applying to more than SVG] T-U -moz-tab-size -moz-text-align-lastObsolete since Gecko 53 -moz-text-decoration-colorObsolete since Gecko 39 -moz-text-decoration-lineObsolete since Gecko 39 -moz-text-decoration-styleObsolete since Gecko 39 -moz-text-si...
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
he opposite of the direction in which we specify margins and padding as a shorthand for example. It may help to realize that this is due to grid using the flow-relative directions defined in the CSS Writing Modes specification. We will explore how grids work with writing modes in a later article however we have the concept of four flow-relative directions: block-start block-end inline-start
inline-end We are working in English, a left-to-right language. Our block-start is the top row line of the grid container, block-end the final row line of the container. Our inline-start is the left-hand column line as inline-start is always the point from which text would be written in the current writing mode,
inline-end is the final column line of our grid. When we specify our grid area using the grid...
...This seems unusual at first as we are used to the physical properties of top, right, bottom and left but makes more sense if you start to think of websites as being multi-directional in writing mode. ...
CSS Scroll Snap - CSS: Cascading Style Sheets
ed. Note: The previous version of this module was called Scroll Snap Points and has been deprecated. CSS Scroll Snap is the current implementation. ...
...ding-bottom scroll-padding-left scroll-padding-inline scroll-padding-inline-start scroll-padding-
inline-end scroll-padding-block scroll-padding-block-start scroll-padding-block-end CSS Properties on Children scroll-snap-align scroll-margin scroll-margin-top scroll-margin-right scroll-margin-bottom scroll-margin-left scroll-margin-inline scroll-margin-inline-start scroll-margin-
inline-end scroll-margin-block scroll-margin-block-start scroll-margin-block-end Guides Basic concepts of CSS Scroll Snap Browser Compatibility and Scroll Snap Specification Specification Status Comment CSS Scroll Snap Module Level 1 Candidate Recommendation Initial definition ...
scroll-margin-inline - CSS: Cascading Style Sheets
The scroll-margin-inline shorthand property sets the scroll margins of an element in the inline dimension. Constituent properties This property is a shorthand for the following CSS properties: scroll-margin-
inline-end scroll-margin-inline-start Syntax /* <length> values */ scroll-margin-inline: 10px; scroll-margin-inline: 1em .5em ; /* Global values */ scroll-margin-inline: inherit; scroll-margin-inline: initial; scroll-margin-inline: unset; Values <length> An outset from the corresponding edge of the scroll container. Description The scroll-margin values represent outsets defining the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in t...
...p to 1rem outside the inline end edge of the second <div>, and 2rems outside the inline end edge of the third <div>. Note: Here we are setting scroll-margin on the start and end of the inline axis (x in our case), but only the end edge is really relevant. It would work just as well here to only set a scroll margin on that one edge, for example with scroll-margin-inline: 0 1rem, or scroll-margin-
inline-end: 1rem. Result Try it for yourself: Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-inline' in that specification. Candidate Recommendation Initial definition ...
Handling different text directions - Learn web development
e number of properties when you consider all of the individual border longhands, and you can see all of the mapped properties on the MDN page for Logical Properties and Values. Logical values We have so far looked at logical property names. There are also some properties that take physical values of top, right, bottom, and left. These values also have mappings, to logical values -- block-start,
inline-end, block-end, and inline-start. For example, you can float an image left to cause text to wrap round the image. You could replace left with inline-start as shown in the example below. Change the writing mode on this example to vertical-rl to see what happens to the image. Change inline-start to
inline-end to change the float. Here we are also using logical margin values to ensure the margin is...
The Firefox codebase: CSS Guidelines
n think of how the CSS variable could improve that CSS. Using variables Use the variable according to its naming Do this: xul|tab:hover { background-color: var(--in-content-box-background-hover); } Not this: #certificateErrorDebugInformation { background-color: var(--in-content-box-background-hover); } Localization Text Direction For margins, padding and borders, use inline-start/
inline-end rather than left/right. Example: Use margin-inline-start: 3px; instead of margin-left: 3px. For RTL-aware positioning (left/right), use inset-inline-start/inset-
inline-end. For RTL-aware float layouts, float: inline-start|
inline-end can be used instead of float: left|right. The RTL-aware equivalents of border-{top/bottom}-{left/right}-radius are border-{start/end}-{start/end}-radius When th...
HTMLImageElement.border - Web APIs
should not use this property! Instead, you should use CSS to style the border. The border property or its longhand properties to not only set the thickness of the border but to potentially apply a wide variety of other styling options to it. The width, specifically, is controlled using the writing-mode aware border-block-start-width, border-block-end-width, border-inline-start-width, and border-
inline-end-width properties. For compatibility (or perhaps other) reasons, you can use the older properties instead (or in addition): border-top-width, border-right-width, border-bottom-width, and border-left-width. Syntax htmlImageElement.border = thickness; let thickness = htmlImageElement.border; Value A DOMString containing an integer value specifying the thickness of the border that should surrou...
::-moz-focus-inner - CSS: Cascading Style Sheets
esn't match anything and has no effect. Syntax Syntax not found in DB! Examples HTML <input type="submit" value="Input"/> <button type="submit">Button</button> CSS button::-moz-focus-inner, input[type="color"]::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner { padding-block-start: 0px; padding-
inline-end: 2px; padding-block-end: 0px; padding-inline-start: 2px; border: 1px dotted red; } Result Specifications Not part of any standard. ...
CSS values and units - CSS: Cascading Style Sheets
e text values defined by the specification for that property. These keywords are also CSS Identifiers and are therefore used without quotes. When viewing CSS property value syntax in a CSS specification or the MDN property page, allowable keywords will be listed in the following form. The following values are the pre-defined keyword values allowed for float. left | right | none | inline-start |
inline-end Such values are used without quotes: .box { float: left; } CSS-wide values In addition to the pre-defined keywords that are part of the specification for a property, all CSS properties accept the CSS-wide property values initial, inherit, and unset, which explicitly specify defaulting behaviors. The initial keyword represents the value specified as the property's initial value. The inhe...
border-block-color - CSS: Cascading Style Sheets
t orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation. border-block-color: yellow; border-block-color: #F5F6F7; The border color in the other dimension can be set with border-inline-color which sets border-inline-start-color, and border-
inline-end-color. Syntax Values <'color'> The color of the border. See color. Formal definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typediscrete Formal syntax <'border-top-color'>{1,2} Examples Border with vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow; width: 120px...
border-block-end-color - CSS: Cascading Style Sheets
entation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax border-block-end-color: yellow; border-block-end-color: #F5F6F7; Related properties are border-block-start-color, border-inline-start-color, and border-
inline-end-color, which define the other border colors of the element. Values <'color'> The color of the border. See color. Formal definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examples Border color with vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div...
border-block-end-style - CSS: Cascading Style Sheets
d in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-block-end-style: dashed; border-block-end-style: dotted; border-block-end-style: groove; Related properties are border-block-start-style, border-inline-start-style, and border-
inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Examples Dashed border with vertical text HTML <div> <p class="exampleText">Example text</p> </div>...
border-block-end-width - CSS: Cascading Style Sheets
or this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-block-end-width: 5px; border-block-end-width: thick; Related properties are border-block-start-width, border-inline-start-width, and border-
inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. Formal definition Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Formal syntax <'border-top-width'> Examples Border wi...
border-block-end - CSS: Cascading Style Sheets
-end-style, and border-block-end-color. The physical border to which it maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top, border-right, border-bottom, or border-left property depending on the values defined for writing-mode, direction, and text-orientation. Related properties are border-block-start, border-inline-start, and border-
inline-end, which define the other borders of the element. Values The border-block-end is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. Formal definition Initial valueas each of the properties of the shorthand:bor...
border-block-start-color - CSS: Cascading Style Sheets
entation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax border-block-start-color: blue; border-block-start-color: #4c5d21; Related properties are border-block-end-color, border-inline-start-color, and border-
inline-end-color, which define the other border colors of the element. Values <'color'> See border-color Formal definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examples Border color with vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-col...
border-block-start-style - CSS: Cascading Style Sheets
a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-block-start-style: dashed; border-block-start-style: dotted; border-block-start-style: groove; Related properties are border-block-end-style, border-inline-start-style, and border-
inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Examples Dashed border wtih vertical text HTML <div> <p class="exampleText">Example text</p> </div>...
border-block-start-width - CSS: Cascading Style Sheets
this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-block-start-width: 5px; border-block-start-width: thick; Related properties are border-block-end-width, border-inline-start-width, and border-
inline-end-width, which define the other border widths of the element. Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Values <'border-width'> The width of the border. See border-width. Formal definition Initial valuemediumApplies toall elementsInheritednoPerc...
border-block-start - CSS: Cascading Style Sheets
tart-style, and border-block-start-color. The physical border to which it maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top, border-right, border-bottom, or border-left property depending on the values defined for writing-mode, direction, and text-orientation. Related properties are border-block-end, border-inline-start, and border-
inline-end, which define the other borders of the element. Values The border-block-start is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. Formal definition Initial valueas each of the properties of the shorthand:b...
border-block-style - CSS: Cascading Style Sheets
rder-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation. /* <'border-style'> values */ border-block-style: dashed; border-block-style: dotted; border-block-style: groove; The border style in the other dimension can be set with border-inline-style, which sets border-inline-start-style, and border-
inline-end-style. Syntax Values <'border-style'> The line style of the border. See border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Examples Dashed border with vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow; w...
border-block-width - CSS: Cascading Style Sheets
ds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation. /* <'border-width'> values */ border-block-width: 5px; border-block-width: thick; The border width in the other dimension can be set with border-inline-width, which sets border-inline-start-width, and border-
inline-end-width. Syntax Values <'border-width'> The width of the border. See border-width. Formal definition Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typediscrete Formal syntax <'border-top-width'> Examples Border width with vertical text HTML <div> <p clas...
border-block - CSS: Cascading Style Sheets
physical borders to which it maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top and border-bottom or border-right, and border-left properties depending on the values defined for writing-mode, direction, and text-orientation. The borders in the other dimension can be set with border-inline, which sets border-inline-start, and border-
inline-end. Constituent properties This property is a shorthand for the following CSS properties: border-block-color border-block-style border-block-width Syntax Values The border-block is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The c...
border-color - CSS: Cascading Style Sheets
itory. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Each side can be set individually using border-top-color, border-right-color, border-bottom-color, and border-left-color; or using the writing mode-aware border-block-start-color, border-block-end-color, border-inline-start-color, and border-
inline-end-color. You can find more information about border colors in Borders in Applying color to HTML elements using CSS. Constituent properties This property is a shorthand for the following CSS properties: border-bottom-color border-left-color border-right-color border-top-color Syntax /* <color> values */ border-color: red; /* horizontal | vertical */ border-color: red #f015ca; /* top | ...
border-inline-start-color - CSS: Cascading Style Sheets
entation. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax border-inline-start-color: red; border-inline-start-color: #ee4141; Related properties are border-block-start-color, border-block-end-color, and border-
inline-end-color, which define the other border colors of the element. Values <'color'> The color of the border. See color. Formal definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examples HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow; ...
border-inline-start-style - CSS: Cascading Style Sheets
GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-inline-start-style: dashed; border-inline-start-style: dotted; border-inline-start-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-
inline-end-style, which define the other border styles of the element. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Values <'border-style'> The line style of the border. See border-style. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Exam...
border-inline-start-width - CSS: Cascading Style Sheets
this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-inline-start-width: 5px; border-inline-start-width: thick; Related properties are border-block-start-width, border-block-end-width, and border-
inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. Formal definition Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Formal syntax <'border-top-width'> Examples HTML <di...
border-inline-start - CSS: Cascading Style Sheets
t: medium dashed green; The physical border to which border-inline-start maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top, border-right, border-bottom, or border-left property depending on the values defined for writing-mode, direction, and text-orientation. Related properties are border-block-start, border-block-end, and border-
inline-end, which define the other borders of the element. Values The border-inline-start is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. Formal definition Initial valueas each of the properties of the shorthand:...
caption-side - CSS: Cascading Style Sheets
al layout. The CSS 2.1 specification notes that the CSS 2 specification described a different behavior for the bottom value, which will be reintroduced by this value in a future specification. ...
grid-column - CSS: Cascading Style Sheets
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
grid-row-end - CSS: Cascading Style Sheets
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
grid-row - CSS: Cascading Style Sheets
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
inset-inline-start - CSS: Cascading Style Sheets
ection, and text-orientation. /* <length> values */ inset-inline-start: 3px; inset-inline-start: 2.4em; /* <percentage>s of the width or height of the containing block */ inset-inline-start: 10%; /* Keyword value */ inset-inline-start: auto; /* Global values */ inset-inline-start: inherit; inset-inline-start: initial; inset-inline-start: unset; The shorthand for inset-inline-start and inset-
inline-end is inset-inline. Syntax Values The inset-inline-start property takes the same values as the left property. Formal definition Initial valueautoApplies topositioned elementsInheritednoPercentageslogical-width of containing blockComputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalAnimation typea length, percentage or calc(); Formal syntax ...
inset-inline - CSS: Cascading Style Sheets
Formal definition Initial valueautoApplies topositioned elementsInheritednoPercentageslogical-width of containing blockComputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalAnimation typea length, percentage or calc(); Formal syntax <'t...
margin-block-end - CSS: Cascading Style Sheets
ner's width */ /* Keyword values */ margin-block-end: auto; /* Global values */ margin-block-end: inherit; margin-block-end: initial; margin-block-end: unset; It corresponds to the margin-top, margin-right, margin-bottom, or margin-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to margin-block-start, margin-inline-start, and margin-
inline-end, which define the other margins of the element. Values The margin-block-end property takes the same values as the margin-left property. Formal definition Initial value0Applies tosame as marginInheritednoPercentagesdepends on layout modelComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoAnimation typea l...
margin-block-start - CSS: Cascading Style Sheets
width */ /* Keyword values */ margin-block-start: auto; /* Global values */ margin-block-start: inherit; margin-block-start: initial; margin-block-start: unset; It corresponds to the margin-top, margin-right, margin-bottom, or margin-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to margin-block-end, margin-inline-start, and margin-
inline-end, which define the other margins of the element. Values The margin-block-start property takes the same values as the margin-left property. Formal definition Initial value0Applies tosame as marginInheritednoPercentagesdepends on layout modelComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoAnimation typea...
margin-inline-start - CSS: Cascading Style Sheets
request. Syntax /* <length> values */ margin-inline-start: 10px; /* An absolute length */ margin-inline-start: 1em; /* relative to the text size */ margin-inline-start: 5%; /* relative to the nearest block container's width */ /* Keyword values */ margin-inline-start: auto; /* Global values */ margin-inline-start: inherit; It relates to margin-block-start, margin-block-end, and margin-
inline-end, which define the other margins of the element. Values The margin-inline-start property takes the same values as the margin-left property. Formal definition Initial value0Applies tosame as marginInheritednoPercentagesdepends on layout modelComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoAnimation typea...
margin-inline - CSS: Cascading Style Sheets
gin-inline: auto; /* Global values */ margin-inline: inherit; margin-inline: initial; margin-inline: unset; This property corresponds to the margin-top and margin-bottom, or margin-right, and margin-left properties, depending on the values defined for writing-mode, direction, and text-orientation. Constituent properties This property is a shorthand for the following CSS properties: margin-
inline-end margin-inline-start Syntax Values The margin-inline property takes the same values as the margin-left property. Formal definition Initial value0Applies tosame as marginInheritednoPercentagesdepends on layout modelComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoAnimation typediscrete Formal syntax ...
padding-block-end - CSS: Cascading Style Sheets
d: initial; padding-block-end: unset; Values The padding-block-end property takes the same values as the padding-left property. Description This property corresponds to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-start, padding-inline-start, and padding-
inline-end, which define the other paddings of the element. Formal definition Initial value0Applies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueas <length>Animation typea length Formal syntax <'padding-left'> Examples Setting block end padding for vertical text HTML Content <div> <p class="exampleText">Example text</p> </div> CSS Content div { backgrou...
padding-block-start - CSS: Cascading Style Sheets
initial; padding-block-start: unset; Values The padding-block-start property takes the same values as the padding-left property. Description This property corresponds to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-end, padding-inline-start, and padding-
inline-end, which define the other paddings of the element. Formal definition Initial value0Applies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueas <length>Animation typea length Formal syntax <'padding-left'> Examples Setting block start padding for vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow...
padding-inline-start - CSS: Cascading Style Sheets
nitial; padding-inline-start: unset; Values The padding-inline-start property takes the same values as the padding-left property. Description This property corresponds to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-start, padding-block-end, and padding-
inline-end, which define the other paddings of the element. Formal definition Initial value0Applies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueas <length>Animation typea length Formal syntax <'padding-left'> Examples Setting inline start padding for vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yello...
padding-inline - CSS: Cascading Style Sheets
Description Values for this property correspond to the padding-top and padding-bottom, or padding-right, and padding-left property depending on the values defined for writing-mode, direction, and text-orientation. Formal definition Initial value0Applies toall elementsInherit...
scroll-padding-inline - CSS: Cascading Style Sheets
arget region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targetted element and the edges of the scrollport. ...
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
h are closest to the start and end of the block the border surrounds. In a left-to-right writing mode (such as the way English is written), the block start border is the top edge and the block end is the bottom. This differs from the inline start and end, which are the left and right edges (corresponding to where each line of text in the box begins and ends). border-inline-start-color and border-
inline-end-color These let you color the edges of the border closest to to the beginning and the end of the start of lines of text within the box. Which side this is will vary depending on the writing-mode, direction, and text-orientation properties, which are typically (but not always) used to adjust text directionality based on the language being displayed. For example, if the box's text is being rendere...