Compare Revisions

::first-letter (:first-letter)

Change Revisions

Revision 35623:

Revision 35623 by teoli on

Revision 35624:

Revision 35624 by teoli on

Title:
::first-letter (:first-letter)
::first-letter (:first-letter)
Slug:
CSS/::first-letter
CSS/::first-letter
Tags:
css, "CSS Reference", Selectors
css, "CSS Reference", Selectors
Content:

Revision 35623
Revision 35624
t23      A first line has only meaning in a <a href="/en/CSS/Visual_t23      A first line has only meaning in a <a href="/en/CSS/Visual_
>formatting_model#Block-level_elements_and_block_boxes" title="htt>formatting_model#Block-level_elements_and_block_boxes" title="htt
>ps://developer.mozilla.org/en/CSS/Visual_formatting_model#Block-l>ps://developer.mozilla.org/en/CSS/Visual_formatting_model#Block-l
>evel_elements_and_block_boxes">block-container box</a>, therefore>evel_elements_and_block_boxes">block-container box</a>, therefore
> the <code>::first_letter</code> pseudo-element has only an effec> the <code>::first_letter</code> pseudo-element has only an effec
>t on elements with a {{ cssxref("display") }} value of <code>bloc>t on elements with a {{ cssxref("display") }} value of <code>bloc
>k</code>, <code>inline-block</code>, <code>table-cell</code> or <>k</code>, <code>inline-block</code>, <code>table-cell</code>, <co
>code>table-caption</code>. In all other cases, <code>::first-lett>de>list-item</code> or <code>table-caption</code>. In all other c
>er</code> has no effect.>ases, <code>::first-letter</code> has no effect.

Back to History