Search completed in 1.25 seconds.
61 results for "inline-start":
Your results are loading. Please wait...
border-inline-start - CSS: Cascading Style Sheets
The border-inline-start CSS property is a shorthand property for setting the individual logical inline-start 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. ...
... inline-start 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-start-color border-inline-start-style border-inline-start-width Syntax border-inline-start: 1px; border-inline-start: 2px dotted; border-inline-start: 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 dependin...
... 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:border-width: as each of the properties of the shorthand:border-top-width: medium...
...And 3 more matches
margin-inline-start - CSS: Cascading Style Sheets
The margin-inline-start CSS property defines the logical inline start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. 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. ...
...argin-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. 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. ...
...ute 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 length Formal syntax <'margin-left'> Examples Setting inline start margin H...
...And 2 more matches
padding-inline-start - CSS: Cascading Style Sheets
The padding-inline-start CSS property defines the logical inline start 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. ...
...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-start: 10px; /* An absolute length */ padding-inline-start: 1em; /* A length relative to the text size */ /* <percentage> value */ padding-inline-start: 5%; /* A padding relative to the block container's width */ /* Global values */ padding-inline-start: inherit; padding-inline-start: initial; padding-inline-start: unset; Values The padding-inline-start property takes the same values as the padding-left property. Description This property ...
...And 2 more matches
border-inline-start-width - CSS: Cascading Style Sheets
The border-inline-start-width CSS property defines the width of the logical inline-start 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-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 blockCompute...
... Editor's Draft Initial definition ...
... Editor's Draft Initial definition ...
inset-inline-start - CSS: Cascading Style Sheets
The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset 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-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. ...
...et-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 <'top'> Examples Setting inline start offset HTML <div...
... Editor's Draft Initial definition ...
... Editor's Draft Initial definition ...
scroll-margin-inline-start - CSS: Cascading Style Sheets
The scroll-margin-inline-start property defines the margin of the scroll snap area at the start 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-start: 10px; scroll-margin-inline-start: 1em; /* Global values */ scroll-margin-inline-start: inherit; scroll-margin-inline-start: initial; scroll-margin-inline-start: unset; Values <length> An outset from the inline start edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax...
... > div:nth-child(2n) { background-color: #fff; color: #663399; } The most relevant part here is scroll-snap-align: start, which specifies that the left-hand edges (the "starts" 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-start: 1rem; } .scroller > div:nth-child(3) { scroll-margin-inline-start: 2rem; } This means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the inline start edge of the second <div>, and 2rems outside the inline start edge of the third <div>. Result Try it for yourself: Specifications Specification Status Comment CSS Scr...
...n-inline-start: 2rem; } This means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the inline start edge of the second <div>, and 2rems outside the inline start 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-start' in that specification. Candidate Recommendation Initial definition ...
border-inline-start-color - CSS: Cascading Style Sheets
The border-inline-start-color CSS property defines the color of the logical inline start 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-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...
...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-start-color: red; } Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'border-inline-start-color' in that specification. Editor's Draft Initial definition ...
border-inline-start-style - CSS: Cascading Style Sheets
The border-inline-start-style CSS property defines the style of the logical inline start 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-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...
... 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-start-style: dashed; } Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'border-inline-start-style' in that specification. Editor's Draft Initial definition ...
scroll-padding-inline-start - CSS: Cascading Style Sheets
The scroll-padding-inline-start property defines offsets for the start 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-start: auto; /* <length> values */ scroll-padding-inline-start: 10px; scroll-padding-inline-start: 1em; scroll-padding-inline-start: 10%; /* Global values */ scroll-padding-inline-start: inherit; scroll-padding-inline-start: initial; scroll-padding-inline-start: unset; Values <length-percentage> An inwards offset from the inline start edge of the scrollport, as a valid length or a percentage. ...
... Candidate Recommendation Initial definition ...
Logical properties for margins, borders and padding - CSS: Cascading Style Sheets
nd padding side, plus all the shorthand values. Mappings for margins, borders, and padding The specification details mappings for each logical value to a physical counterpart. In the table below I have given these mapped values assuming that the writing-mode in use is horizontal-tb -- with a left to right direction. The inline direction therefore runs horizontally -- left to right -- and margin-inline-start would be equivalent to margin-left. If you were using a horizontal-tb writing mode with a right-to-left text direction then margin-inline-start would be the same as margin-right, and in a vertical writing mode it would be the same as using margin-top. Logical property Physical Property border-block-end border-bottom border-block-end-color border-bottom-co...
... 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-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 ...
...These shorthands have no physical equivalen...
...And 3 more matches
Logical properties for floating and positioning - CSS: Cascading Style Sheets
the positioning properties used with positioned 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. ...
... 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. ...
...nd values discussed in this guide along 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...
...And 2 more matches
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
ttom-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-radiusborder-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusb...
...w-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-inlinemargin-inline-endmargi...
...nteger>: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)max-zoom (@viewpor...
...And 2 more matches
clear - CSS: Cascading Style Sheets
Web › CSS › clear
If you want it to always 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 in...
...set; 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 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. inline-end Is a keyword indicating that the element is moved down to clear floats on end side of its containing block, that is the right floats on ltr scripts and the left floats on rtl scripts. Formal defini...
... right floats on rtl scripts. inline-end Is a keyword indicating that the element is moved down to clear floats on end side of its containing block, that is the right floats on ltr scripts and the left floats on rtl scripts. Formal definition Initial valuenoneApplies toblock-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | left | right | both | inline-start | inline-end Examples clear: left HTML <div class="wrapper"> <p class="black">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.</p> <p class="red">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> <p class="left">This paragraph clears left.</p> </div> CSS .wrapper{ border:1px solid black; ...
...And 2 more matches
Animatable CSS properties - CSS: Cascading Style Sheets
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 border-top-left-radius border-top-right-radius border-top-width border-...
...x-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 max-width min-blo...
...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-margin-left scroll-mar...
... 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-indent text-shadow text-u...
float - CSS: Cascading Style Sheets
Web › CSS › float
rer versions 8 and older 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"). ...
...That is the left side with ltr scripts, and the right side with rtl scripts. inline-end The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts. ...
...nd the right side with rtl scripts. inline-end The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts. Formal definition Initial valuenoneApplies toall elements, but has no effect if the value of display is none.InheritednoComputed valueas specifiedAnimation typediscrete Formal syntax left | right | none | inline-start | inline-end Examples How floated elements are positioned As mentioned above, when an element is floated, it is taken out of the normal flow of the document (though still remaining part of it). 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. Two are floated left, and one is float...
...to force an item 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
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 (logical keyword) margin-block margin-block-end margin-block-start margin-inline margin-inlin...
...e-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-inline-start Other pr...
...ck 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-inline-start ) G...
Handling different text directions - Learn web development
g properties you will find many instances of physical properties, for example margin-top, padding-left, and border-bottom. In the same way that we have mappings for width and height there are mappings for these properties. The margin-top property is mapped to margin-block-start -- this will always refer to the margin at the start of the block dimension. The padding-left property maps to padding-inline-start, the padding that is applied to the start of the inline direction. This will be where sentences start in that writing mode. The border-bottom property maps to border-block-end, which is the border at the end of the block dimension. You can see a comparison between physical and logical properties below. If you change the writing mode of the boxes by switching the writing-mode property on .box to...
... 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 in the correct place no matt...
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
range, it is the 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 us...
...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
rolling operation has completed. Note: The previous version of this module was called Scroll Snap Points and has been deprecated. CSS Scroll Snap is the current implementation. ...
...ll-padding-right scroll-padding-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 ...
Mozilla CSS extensions - CSS: Cascading Style Sheets
[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 the standard version border-inline-start-color] -moz-border-start-style [Superseded by the standard version border-inline-start-style] -moz-border-start-width [Superseded by the standard version border-inline-start-width] -moz-box-sizing [Prefixed version still accepted] C clip-path [Applying to more than SVG] -moz-column-count [Pref...
...cepted] -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 -moz-padding-end [Superseded by the standard version padding-inline-start] -m...
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
used to draw the borders which 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...
...dges 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 rendered right-to-left, then the border-inline-start-color is applied to the right side of the border. Other ways to use color CSS isn't the only web technology that supports color. There are graphics technologies that are available on the web which also support color. The HTML Canvas API Lets you draw 2D bitmapped graphics in a <canvas> element. See our Canvas tutorial to learn more. SVG (Scalable Vector Graphics) Lets you draw images usi...
The Firefox codebase: CSS Guidelines
le(s) and then 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}-radi...
HTMLImageElement.border - Web APIs
no border should be drawn. You 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 ...
::-moz-focus-inner - CSS: Cascading Style Sheets
...
Basic concepts of Logical Properties and Values - CSS: Cascading Style Sheets
The below diagram shows the inline and block directions in a horizontal writing mode: This diagram shows block and inline in a vertical writing mode: Browser support Logical Properties and Values can be thought of as a couple of groups in terms of current browser support. Some of the properties are essentially mappings from the physical versions, for example inline-size for width or margin-inline-start rather than margin-left. These mapped properties are starting to see good browser support, and if you look at the individual pages for the properties in the reference here on MDN you will see that Edge is the only modern browser currently missing these. There are then a group of properties which do not have a direct mapping in terms of existing physical properties. These are shorthands made poss...
CSS values and units - CSS: Cascading Style Sheets
ned keywords are 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 va...
Inline formatting context - CSS: Cascading Style Sheets
the next example there is a (<span>) element wrapping a set of words wrapping onto two lines. The border on the <span> breaks at the wrapping point. Margins, borders, and padding in the inline direction are respected. In the example below you can see how the margin, border, and padding on the inline <span> element are added. Note: I am using the logical, flow-relative properties -- padding-inline-start rather than padding-left -- so that they work in the inline dimension whether the text is horizontal or vertical. Read more about these properties in Logical Properties and Values. Alignment in the block direction Inline boxes may be aligned in the block direction in different ways, using the vertical-align property, which will align on the block axis in vertical writing modes (therefore not v...
border-block-color - CSS: Cascading Style Sheets
g mode, directionality, and text 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-...
border-block-end-color - CSS: Cascading Style Sheets
g-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-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">Examp...
border-block-end-style - CSS: Cascading Style Sheets
is 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-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="example...
border-block-end-width - CSS: Cascading Style Sheets
xt-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-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...
border-block-end - CSS: Cascading Style Sheets
k-end-width, border-block-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 properti...
border-block-start-color - CSS: Cascading Style Sheets
g-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-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> ...
border-block-start-style - CSS: Cascading Style Sheets
nteractive 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-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="example...
border-block-start-width - CSS: Cascading Style Sheets
-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-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 ...
border-block-start - CSS: Cascading Style Sheets
art-width, border-block-start-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 proper...
border-block-style - CSS: Cascading Style Sheets
to the border-top-style and border-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 { ...
border-block-width - CSS: Cascading Style Sheets
text orientation. It corresponds 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 vertica...
border-block - CSS: Cascading Style Sheets
ck dimension at once. The 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-s...
border-color - CSS: Cascading Style Sheets
ple 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. 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-c...
border-inline-end-color - CSS: Cascading Style Sheets
on. 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 definition Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examp...
border-inline-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-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 valueas specifiedAnimation typediscrete Formal syntax <'border-top-style'> Examples HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: ...
border-inline-end-width - CSS: Cascading Style Sheets
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 Values <'border-width'> The width of the border. See border-width. Formal definition Initial valuemediumApplies toall elementsInheritednoPerc...
border-inline-end - CSS: Cascading Style Sheets
-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 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-start, which define the other borders of the element. Initial valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-...
caption-side - CSS: Cascading Style Sheets
able's horizontal 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-start - 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
Web › CSS › grid-row
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-end - CSS: Cascading Style Sheets
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. 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(...
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 <'top'>{1,2} Examples ...
margin-block-end - CSS: Cascading Style Sheets
the nearest block container'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...
margin-block-start - CSS: Cascading Style Sheets
earest block container's 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; otherwi...
margin-inline-end - CSS: Cascading Style Sheets
Values The margin-inline-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...
margin-inline - CSS: Cascading Style Sheets
/* 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 <'margin-left'>{1,2}...
padding-block-end - CSS: Cascading Style Sheets
inherit; padding-block-end: 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 C...
padding-block-start - CSS: Cascading Style Sheets
erit; padding-block-start: 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 { ...
padding-inline-end - CSS: Cascading Style Sheets
nd: initial; padding-inline-end: unset; Values The padding-inline-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-block-end, and padding-inline-start, 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 end padding for vertical text HTML <div> <p class="exampleText">Example text</p> </div> CSS div { background-color: yellow;...
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 elementsInheritednoPercentageslogical...
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 the...
scroll-margin - CSS: Cascading Style Sheets
ans that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the left edge of the second <div>, and 2rems outside the left edge of the third <div>. Note: Here we are setting scroll-margin on all sides at once, but only the start 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-start: 1rem, or scroll-margin: 0 0 0 1rem. Result Try it for yourself: Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-inline - CSS: Cascading Style Sheets
ings 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. ...