border-block-style — block-axis border styles
border-block-style sets the border styles at the start and end of the block axis. It accepts one or two values; their mapping to physical edges depends on the writing mode.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
border-block-style sets the border styles at the start and end of the block axis. It accepts one or two values; their mapping to physical edges depends on the writing mode.
border-block-width sets border thickness at the start and end of the block axis. One value applies to both edges; two values specify start and end respectively. Their physical positions depend on the writing mode.
The border-bottom shorthand sets the width, style, and color of the bottom border. Omitted components return to their initial values, so leaving out the style can make the line invisible.
The border-bottom-color property sets the color of the physical bottom border. It does not set border width or style; its initial currentcolor value uses the element’s color value.
The border-bottom-left-radius property sets the radii of the physical bottom-left border corner. One value sets both radii; two values specify the horizontal and vertical radii, respectively.
The border-bottom-right-radius property specifies the radii of the bottom-right border corner. One value sets both radii; two values set the horizontal and vertical radii respectively. Values can be nonnegative lengths or percentages.
The border-bottom-style property sets the pattern of the physical bottom border. It accepts one style, such as solid or dashed; width and color are set separately. Its initial value, none, means no border.
The border-bottom-width property sets the thickness of an element’s physical bottom border. It accepts a nonnegative length or thin, medium, or thick. Width alone does not display a border: a style other than none or hidden is also needed.
The border-collapse property selects how table borders are drawn: separate keeps individual cell edges, while collapse merges adjacent edges into shared borders.
The border-color shorthand sets the colors of the four physical border sides. It accepts one to four color values without changing the line style or width. A visible border also requires an appropriate style and a nonzero width.
The border-end-end-radius property sets the radii of the corner where the block-end and inline-end sides meet. The selected corner depends on writing direction and writing mode, so it is not always the bottom-right corner.
The border-end-start-radius property sets the rounding of the corner at the block-end and inline-start sides. The selected physical corner depends on the element’s writing mode and direction.
border-image is a CSS shorthand that builds a border from an image or gradient. It controls the source, slicing, width, outset, and repetition without reserving additional layout space.
The border-image-outset property extends the border image area beyond the border box without enlarging the element’s layout box. It accepts lengths or unitless multipliers of the corresponding border widths.
The border-image-repeat property controls stretching and tiling of border-image pieces. It accepts one or two keywords that independently control the horizontal and vertical directions.
border-image-slice defines cuts dividing a border image into corners, edges, and a center. The optional fill keyword preserves the center piece.
The border-image-source property selects an image to replace the ordinary CSS border. It accepts none or <image>, including a gradient. It defines the source; other border-image-* properties control slicing and placement.
border-image-width controls the thickness of border image bands, not the space reserved for borders in layout. It accepts lengths, percentages, border-width multipliers, or auto.
The border-inline shorthand sets identical border width, style, and color at the start and end of the inline axis. The physical edges depend on writing direction and writing mode.
border-inline-color sets the border colors at the start and end of the inline axis. One value applies to both sides; two values mean start then end. Their physical edges depend on writing direction and writing mode.
border-inline-end sets the width, style, and color of the border at the end of the inline axis. Its physical side depends on writing direction and writing mode, so it is not always the right edge.
The border-inline-end-color property sets the border color at the end of the inline axis. Unlike border-right-color, it targets a logical side determined by the writing direction and writing mode.
The border-inline-end-style property sets the border style on an element’s inline-end side. In horizontal writing, this is the right side with direction: ltr and the left side with direction: rtl. It does not set the border width or color.
The border-inline-end-width property sets the border thickness on the logical inline-end side. The physical side depends on writing direction and writing mode, so it is not always the right edge.