new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tailwind CSS v4 · all subjects

utilities/line-clamp

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

line-clamp utilities for text truncation

The line-clamp utilities clamp text to a specific number of lines. line-clamp-<number> applies overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: <number>;. line-clamp-none undoes line clamping by applying overflow: visible; display: block; -webkit-box-orient: horizontal; -webkit-line-clamp: unset;. line-clamp-(<custom-property>) uses a CSS custom property by applying -webkit-line-clamp: var(<custom-property>);. line-clamp-[<value>] accepts arbitrary values.

line-clamp-<number> basic usage

Use line-clamp-<number> utilities like line-clamp-2 and line-clamp-3 to truncate multi-line text after a specific number of lines.

line-clamp-none to undo line clamping

Use line-clamp-none to undo a previously applied line clamp utility. For example, line-clamp-3 lg:line-clamp-none will apply line clamping at smaller breakpoints and remove it at the lg breakpoint.

line-clamp with custom properties

line-clamp utilities support custom properties using the syntax line-clamp-(<custom-property>), such as line-clamp-(--line-count). They also support arbitrary values with line-clamp-[<value>] syntax.

line-clamp is responsive

line-clamp utilities support responsive design prefixes to apply different line clamp values at different breakpoints.

Give your agent this brain