background-position: place the image, not the element
Use coordinates, edge offsets and percentages of the space left after sizing the background.
CKTIS / CSS
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Use coordinates, edge offsets and percentages of the space left after sizing the background.
Set a physical horizontal coordinate for each background layer without replacing its vertical position.
Move each background up or down without confusing the physical y axis with block flow.
Control each axis separately and distinguish gaps between tiles from rescaling the tiles themselves.
The background-size property controls background image dimensions, not element dimensions. Supply explicit sizes, use auto, or fit an image with contain or cover.
baseline-shift moves content after baseline alignment or relative to its line box. The example demonstrates shifted SVG text.
baseline-source chooses the first or last baseline set of a box participating in baseline alignment.
block-size sets an element’s size along the block axis. It corresponds to height in horizontal writing modes and width in vertical writing modes, allowing layouts to adapt to writing-mode.
The border property sets the width, style, and color of all four borders. Omitted components return to their initial values, and border-image is reset as well.
Apply the same width, line style and color to block-start and block-end without hard-coding top and bottom.
Set one color for both block borders or a start/end pair while keeping their widths and line styles.
Style a single logical end edge, which can be the bottom, left or right depending on writing-mode.
Change the block-end border color, including currentColor and transparent, without resetting its line style or width.
Control the pattern at block-end and understand why none removes width while a transparent solid border keeps it.
Set the thickness of one flow-relative edge, independently of its color and line style.
Write width, line style and color together for the edge selected by the block writing direction.
Change a logical border’s paint without changing its thickness or the space it occupies.
Select a border pattern on the block-start edge and understand why none and hidden also affect layout.
Control the first block edge’s thickness and account for whether it increases or consumes the box size.
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.