CSS entries starting with “C”

Every CSS entry starting with C, grouped by kind. Pseudo-classes, pseudo-elements and types are filed by their first letter, ignoring the leading :, :: or <.

NameDescription
Color
CanvasSystem colour: the background of the page.
CanvasTextSystem colour: text on the page background.
cadetblueNamed colour #5f9ea0.
chartreuseNamed colour #7fff00.
chocolateNamed colour #d2691e.
coralNamed colour #ff7f50.
cornflowerblueNamed colour #6495ed.
cornsilkNamed colour #fff8dc.
crimsonNamed colour #dc143c.
currentcolorThe element's own color value, for borders, shadows and fills.
cyanNamed colour #00ffff, the same as aqua.
Function
calc()Evaluates an arithmetic expression that can mix units.
calc-size()Arithmetic on intrinsic sizes such as auto, so they can be animated.
circle()A circular basic shape for clip-path and shape-outside.
clamp()Keeps a preferred value between a minimum and a maximum.
color()A colour in a named colour space such as display-p3.
color-mix()Mixes colours in a chosen colour space.
conic-gradient()An image of colours changing around a centre point.
contrast()A filter that adjusts contrast.
contrast-color()White or black, whichever contrasts more with a colour.
cos()The cosine of an angle.
counter()The current value of a counter, as a string for content.
counters()All nested values of a counter joined by a string, such as 1.2.3.
cross-fade()An image that blends two images by a percentage.
cross-origin()url() modifier that fetches the resource with a CORS request.
cubic-bezier()A smooth easing curve defined by two control points.
Keyword
cursiveGeneric font family: a script or handwriting-style font.
Media feature
colorBits per colour component of the output device.
color-gamutThe range of colours the display can show: srgb, p3 or rec2020.
color-indexEntries in the output device's colour lookup table.
Property
caption-sidePuts a table caption above or below the table.
caret-animationTurns off the built-in caret blink so authors can animate it.
caret-colorThe colour of the text insertion caret.
caret-shapeThe shape of the text caret: bar, block or underscore.
clearMoves a box below earlier floats on the given side.
clipDeprecated rectangle clip for absolutely positioned elements. Use clip-path.
clip-pathClips an element to a shape, box or SVG clipPath.
clip-ruleThe fill rule used by shapes inside an SVG clipPath.
colorThe foreground colour of text, and the value of currentColor.
color-adjustDeprecated older name for print-color-adjust.
color-interpolationThe colour space SVG uses for gradients, animation and compositing.
color-interpolation-filtersThe colour space SVG filter primitives work in.
color-schemeWhich colour schemes, light or dark, an element supports.
column-countThe number of columns in a multi-column container.
column-fillWhether columns are balanced or filled one after another.
column-gapThe space between columns, or between flex items in a row.
column-heightA fixed height for each column, allowing rows of columns.
column-ruleShorthand for the width, style and colour of lines between columns.
column-rule-breakWhether column rules break into segments where gaps intersect.
column-rule-colorThe colour of lines drawn between columns.
column-rule-insetShorthand for the cap and junction insets of column rules.
column-rule-inset-capInsets of column rule ends at the container edges.
column-rule-inset-cap-endInset of a column rule end at the container edge.
column-rule-inset-cap-startInset of a column rule start end at the container edge.
column-rule-inset-endInset of the end of each column rule segment.
column-rule-inset-junctionInsets of column rule ends where they meet other rules.
column-rule-inset-junction-endInset of a column rule end where it meets other rules.
column-rule-inset-junction-startInset of a column rule start end where it meets other rules.
column-rule-inset-startInset of the start end of each column rule segment.
column-rule-styleThe line style of rules drawn between columns.
column-rule-visibility-itemsWhich column gap segments get a rule, based on neighbouring items.
column-rule-widthThe thickness of lines drawn between columns.
column-spanLets an element span every column of its multi-column container.
column-widthThe ideal width of each column in a multi-column container.
column-wrapWhether extra columns wrap into a new row or overflow sideways.
columnsShorthand for column-width, column-count and column-height.
containIsolates an element's size, layout, paint or style from the rest of the page.
contain-intrinsic-block-sizeThe placeholder block size of a size-contained element.
contain-intrinsic-heightThe placeholder height of a size-contained element.
contain-intrinsic-inline-sizeThe placeholder inline size of a size-contained element.
contain-intrinsic-sizeShorthand for the placeholder size of a size-contained element.
contain-intrinsic-widthThe placeholder width of a size-contained element.
containerShorthand for container-name and container-type.
container-nameNames a query container so @container rules can target it.
container-typeMakes an element a container for size or scroll-state queries.
contentGenerated content for ::before, ::after and ::marker, or a replacement image.
content-visibilityLets the browser skip rendering an element's contents until needed.
corner-block-end-shapeSets the shape of the two corners on the block-end side.
corner-block-start-shapeSets the shape of the two corners on the block-start side.
corner-bottom-left-shapeThe shape of the bottom-left corner.
corner-bottom-right-shapeThe shape of the bottom-right corner.
corner-bottom-shapeSets the shape of the two bottom corners.
corner-end-end-shapeThe shape of the block-end, inline-end corner.
corner-end-start-shapeThe shape of the block-end, inline-start corner.
corner-inline-end-shapeSets the shape of the two corners on the inline-end side.
corner-inline-start-shapeSets the shape of the two corners on the inline-start side.
corner-left-shapeSets the shape of the two left-hand corners.
corner-right-shapeSets the shape of the two right-hand corners.
corner-shapeShorthand for the shape of the four rounded corners, such as squircle or bevel.
corner-start-end-shapeThe shape of the block-start, inline-end corner.
corner-start-start-shapeThe shape of the block-start, inline-start corner.
corner-top-left-shapeThe shape of the top-left corner.
corner-top-right-shapeThe shape of the top-right corner.
corner-top-shapeSets the shape of the two top corners.
counter-incrementAdds to CSS counters each time an element appears.
counter-resetCreates new CSS counters with a starting value.
counter-setSets existing CSS counters to a value without creating new ones.
cursorThe mouse cursor shown over an element, from a keyword or custom images.
cxThe x coordinate of the centre of an SVG circle or ellipse.
cyThe y coordinate of the centre of an SVG circle or ellipse.
Pseudo-class
:checkedMatches checked checkboxes and radio buttons, and selected options.
Pseudo-element
::checkmarkThe checked indicator of a checkbox, radio button or option.
::columnEach column of a multi-column container.
::cueThe WebVTT captions and subtitles of a video.
::cue()Parts of WebVTT caption text that match a selector.
Type
<color-interpolation-method>The colour space used to blend colours in color-mix() and gradients.
<color>Any colour: hex, named, system, currentcolor or a colour function.
<content-distribution>space-between, space-around, space-evenly or stretch.
<content-position>Pack a container's content to the start, end or centre.
<coord-box>A reference box for masks and motion paths, CSS or SVG.
<corner-shape-value>The shape of a rounded corner: round, squircle, bevel, scoop and more.
<counter-style>How a counter is shown: decimal, roman, letters, bullets and more.
<custom-ident>An author-chosen, case-sensitive name, such as an animation name.
Unit
capThe cap height of the element's font.
chThe advance width of the digit 0 in the element's font.
cmOne centimetre.
cqb1% of the query container's block size.
cqh1% of the query container's height.
cqi1% of the query container's inline size.
cqmaxThe larger of cqi and cqb.
cqminThe smaller of cqi and cqb.
cqw1% of the query container's width.