text-align — aligning line content
`text-align` aligns inline content inside a block container. Logical values `start` and `end` account for text direction; the property does not center the block itself.
CKTIS / CSS
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
`text-align` aligns inline content inside a block container. Logical values `start` and `end` account for text direction; the property does not center the block itself.
The text-align-last property controls alignment of a block’s last line and lines immediately before forced breaks. It lets those lines use a different alignment from the remaining lines.
The text-anchor property determines whether the start, middle, or end of an SVG text chunk aligns with its anchor point.
`text-autospace` controls spacing at boundaries between character classes and around punctuation without changing content or text copied as plain text.
The text-box shorthand sets text-box-trim and text-box-edge, selecting which edges to trim and which font metrics define their boundaries.
The text-box-edge property selects the font metrics used by text-box-trim. It does not enable trimming by itself or fit the box to the actual outline of each letter.
The text-box-trim property trims a text box to metrics selected by text-box-edge, rather than removing characters or whitespace.
text-combine-upright combines characters into a horizontal fragment occupying one character space in vertical text.
The text-decoration shorthand sets the kind, style, color, and thickness of decorative text lines. Omitted components reset to their initial values.
The text-decoration-color property sets the color of underlines, overlines, and strike-throughs independently of the letters. It does not enable any line by itself.
The text-decoration-line property selects underlines, overlines, or strike-throughs. Lines can be combined; none on a descendant does not remove a decoration originating from an ancestor.
Controls gaps in underlines and overlines where they cross glyph shapes; it does not create decorations.
The text-decoration-style property sets the pattern of an underline, overline, or strike-through. It does not enable a decoration itself: text-decoration-line selects the line.
The text-decoration-thickness property sets underline, overline, and strike-through thickness, but does not enable decorations itself.
The CSS `text-emphasis` shorthand sets the style and color of small emphasis marks beside text, especially in East Asian typography. It neither sets nor resets their position.
The text-emphasis-color property sets the color of emphasis marks beside text, independently of the letters' color. It is inherited, and its initial value, currentcolor, makes the marks follow the color property.
The text-emphasis-position property selects which side of text receives emphasis marks. It specifies separate positions for horizontal and vertical typographic modes; it does not enable marks by itself.
The text-emphasis-style property sets the shape and fill of emphasis marks beside text. It is inherited; none disables the marks.
The experimental text-fit property scales text after line wrapping. It selects growth or shrinkage, controls whether lines share a scale factor, and accepts a percentage limit.
text-indent sets the indentation of the first formatted line of text. It does not move the whole block like a margin or add space to every line like padding.
The text-justify property selects how spacing is distributed in a justified line. It does not enable justification itself: it needs an appropriate alignment, usually text-align: justify. Its methods distinguish spacing at word separators from spacing between typographic character units.
The text-orientation property controls character orientation in vertical typesetting. It does not establish vertical layout itself.
The text-overflow property controls how content extending beyond a line edge is presented: clipping or an ellipsis. It does not constrain the width or create overflow by itself.
text-rendering hints at priorities for SVG text: speed, legibility, or geometric precision. It does not guarantee a particular appearance.