MailViewr - Free HTML Email Preview Tool

CSS Support in HTML Email

210 CSS properties tested across Gmail, Outlook, Apple Mail, Yahoo!, and 15+ email clients.Find out what's safe to use before you send.

:

:activeStyles an element while it is being activated, such as while a button is being pressed.:checkedStyles a checkbox, radio, or option element when it is in a checked state.:first-childSelects an element that is the first child of its parent.:first-of-typeSelects the first element of its type among siblings.:focusStyles an element when it has keyboard or pointer focus.:has()Represents an element if any of the selectors passed as parameters match at least one element.:hoverApplies styles when the user hovers a pointing device over an element.:last-childSelects an element that is the last child of its parent.:last-of-typeSelects the last element of its type among siblings.:linkStyles links that have not yet been visited.:notSelects elements that do not match a given selector.:nth-childSelects elements based on their position among siblings using a formula.:nth-last-childSelects elements based on their position from the end among siblings.:nth-last-of-typeSelects elements of a given type by position from the end among siblings.:nth-of-typeSelects elements of a given type by their position among siblings.:only-childSelects an element that is the only child of its parent.:only-of-typeSelects an element that is the only one of its type among siblings.:targetStyles an element that is the current URL fragment target.:visitedStyles links that the user has already visited.::afterInserts generated content after an element's actual content using the content property.::beforeInserts generated content before an element's actual content using the content property.::first-letterApplies styles to the first letter of a block-level element.::first-lineApplies styles to the first line of text in a block-level element.::markerSelects the marker box of a list item (typically a bullet or number).::placeholderStyles the placeholder text inside an input or textarea element.

!

@

%

A

B

backdrop-filterLets you apply graphical effects such as blurring or color shifting to the area behind an element.background-blend-modeSets how an element's background image blends with its background color.background-clipDetermines whether the background extends under the border, padding, or content box only.background-colorSets the background color of an element using color names, hex, rgb, or other color values.background-imageSets one or more background images on an element, including gradients.background-originSpecifies the origin position of a background image relative to border, padding, or content box.background-positionSets the starting position of a background image within its container.background-repeatDefines whether and how a background image repeats across the element.background-sizeSpecifies the size of background images, supporting keywords like cover and contain.backgroundShorthand property for setting all background properties in a single declaration.block-size & inline-sizeDefines the horizontal or vertical size of an element's block, depending on its writing mode.border-collapseSets whether cells inside a `<table>` have shared or separate borders.border-imageDraws an image around an element in place of a standard border.border-inline & border-block individual logical propertiesSupport for `border-inline` & `border-block` individual logical properties.border-inline & border-block longhand propertiesSupport for `border-inline` & `border-block` longhand properties.border-inline & border-blockSupport for the `border-inline` and `border-block` shorthand properties.border-radius logical propertiesSupport for border radius logical propertiesborder-radiusThe `border-radius` CSS property rounds the corners of an element's outer border edge.border-spacingSets the distance between the borders of adjacent cells in a `<table>`.borderThe `border` properties set an element's border. This page accounts for all `border` longhands and shorthands.box-shadowAdds shadow effects around an element's frame.box-sizingControls whether padding and border are included in an element's total width and height calculation.

C

caption-sideThe `caption-side` CSS property puts the content of a table's `<caption>` on the specified side.clearSets whether an element must be moved below (cleared) floating elements that precede it.clip-pathClips an element to a specified shape, hiding the parts outside the clipping region.color-scheme CSS propertyChanges the default colors of HTML elements. Useful for when you want an email to display only in a dark color scheme or only a light scheme, regardless of user settingscolumn-countDivides an element's content into a specified number of columns.css column propertiesSupport for the `columns` shorthand and longhand properties.CSS commentsAdds explanatory notes to the code or to prevent the browser from interpreting specific parts of the style sheetconic-gradient()Creates an image consisting of a gradient with color transitions rotated around a center point (rather than radiating from the center).cursorThe cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element.clamp()Support for the CSS `clamp()` function.CSS NestingA syntax for nesting selectors, providing the ability to nest one style rule inside another.Chaining selectorsChaining selectors (`.foo.bar`) allows to apply styles to elements matching all the corresponding selectors.Child combinatorThe child combinator is represented by a superior sign (`>`) between two selectors and matches the second selector if it is a direct child of the first selector.Class selectorThe class selector (`.className`) allows to apply styles to a group of elements with the corresponding `class` attribute.CSS calc() functionSupport for CSS calc function.ch unitSupport for ch unit, relative to the width of a '0'.cm unitSupport for centimeters unitCSS Variables (Custom Properties)Custom properties that hold reusable values, referenced elsewhere with var(), enabling theme-like CSS patterns.

D

E

F

G

H

I

J

L

M

O

P

R

S

T

Type selectorType selector or element selectors allow to apply styles by HTML element names.tab-sizeSets the width of tab characters in pre-formatted text.table-layoutThe table-layout property defines the algorithm used to lay out table cells, rows, and columns.text-align-lastThe `text-align-last` CSS property sets how the last line of a block or a line right before a forced line break is aligned.text-alignSets the horizontal alignment of the content.text-decoration-colorSets the color of text decorations such as underlines, overlines, and line-throughs.text-decoration-lineSets the kind of decoration that is used on text in an element, such as an underline or overline.text-decoration-skip-inkSpecifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders.text-decoration-styleSets the style of the lines specified by text-decoration-line.text-decoration-thicknessSets the thickness of text decoration lines such as underlines.text-decorationTested with the values `overline`, `underline` and `line-through`.text-emphasis-positionDetermines the position of the emphasis mark.text-emphasisApplies emphasis marks to text commonly used in East Asian languages. Tests with text-emphasis, text-emphasis-color & text-emphasis-style properties.text-indentSupport below refers to supporting a `<length>` value only. This does not include the new `each-line` or `hanging` keywords.text-justifySets what type of justification should be applied to text when `text-align: justify;` is set on an element.text-orientationSets the orientation of the text characters in vertical mode.text-overflowTested with the value `ellipsis`.text-shadowAdds one or more shadow effects to text, specified as horizontal offset, vertical offset, blur radius, and color.text-transformEach of the six `text-transform` values defined by MDN (`capitalize`, `uppercase`, `lowercase`, `none`, `full-width`, `full-size-kana`).text-underline-offsetSets the distance between an underline text decoration and the text baseline.text-underline-positionSpecifies the position of the underline which is set using the `text-decoration property`'s underline value.text-wrapControls how text inside an element is wrappedtransformTested with values `matrix`, `translate`, `scale`, `rotate`, `skew`, `scale translate`.transitionCreates a visual transition when changing CSS properties.

U

V

W

Z

Check your email's CSS compatibility

Paste your HTML and get an instant compatibility score across 20+ clients.

Try MailViewr Free