Skip to content
PatternFly logo

Text

Examples

Basic

Hello world

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!

Second level

Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.

  • In fermentum leo eu lectus mollis, quis dictum mi aliquet.
  • Morbi eu nulla lobortis, lobortis est in, fringilla felis.
  • Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
    • In fermentum leo eu lectus mollis, quis dictum mi aliquet.
    • Morbi eu nulla lobortis, lobortis est in, fringilla felis.
    • Ut venenatis, nisl scelerisque.
      1. Donec blandit a lorem id convallis.
      2. Cras gravida arcu at diam gravida gravida.
      3. Integer in volutpat libero.
  • Ut non enim metus.

Third level

Quisque ante lacus, malesuada ac auctor vitae, congue non ante. Phasellus lacus ex, semper ac tortor nec, fringilla condimentum orci. Fusce eu rutrum tellus.

  1. Donec blandit a lorem id convallis.
  2. Cras gravida arcu at diam gravida gravida.
  3. Integer in volutpat libero.
  4. Donec a diam tellus.
  5. Etiam auctor nisl et.
    • Donec blandit a lorem id convallis.
    • Cras gravida arcu at diam gravida gravida.
    • Integer in volutpat libero.
      1. Donec blandit a lorem id convallis.
      2. Cras gravida arcu at diam gravida gravida.
  6. Aenean nec tortor orci.
  7. Quisque aliquam cursus urna, non bibendum massa viverra eget.
  8. Vivamus maximus ultricies pulvinar.
Ut venenatis, nisl scelerisque sollicitudin fermentum, quam libero hendrerit ipsum, ut blandit est tellus sit amet turpis.

Quisque at semper enim, eu hendrerit odio. Etiam auctor nisl et justo sodales elementum. Maecenas ultrices lacus quis neque consectetur, et lobortis nisi molestie.


Plain list example

  1. Donec blandit a lorem id convallis.
  2. Cras gravida arcu at diam gravida gravida.
  3. Integer in volutpat libero.
  4. Donec a diam tellus.
  5. Etiam auctor nisl et.
    • Regular list
    • Donec blandit a lorem id convallis.
    • Cras gravida arcu at diam gravida gravida.
    • Integer in volutpat libero.
      1. Nested plain list
      2. Donec blandit a lorem id convallis.
      3. Cras gravida arcu at diam gravida gravida.
  6. Aenean nec tortor orci.
  7. Quisque aliquam cursus urna, non bibendum massa viverra eget.
  8. Vivamus maximus ultricies pulvinar.

Visited link example

Visited link


Sed sagittis enim ac tortor maximus rutrum. Nulla facilisi. Donec mattis vulputate risus in luctus. Maecenas vestibulum interdum commodo.

Web
The part of the internet that contains websites and web pages
HTML
A markup language for creating web pages
CSS
A technology to make HTML look better

Suspendisse egestas sapien non felis placerat elementum. Morbi tortor nisl, suscipit sed mi sit amet, mollis malesuada nulla. Nulla facilisi. Nullam ac erat ante.

Fourth level

Nulla efficitur eleifend nisi, sit amet bibendum sapien fringilla ac. Mauris euismod metus a tellus laoreet, at elementum ex efficitur.

Maecenas eleifend sollicitudin dui, faucibus sollicitudin augue cursus non. Ut finibus eleifend arcu ut vehicula. Mauris eu est maximus est porta condimentum in eu justo. Nulla id iaculis sapien.

Sometimes you need small text to display things like date created

Phasellus porttitor enim id metus volutpat ultricies. Ut nisi nunc, blandit sed dapibus at, vestibulum in felis. Etiam iaculis lorem ac nibh bibendum rhoncus. Nam interdum efficitur ligula sit amet ullamcorper. Etiam tristique, leo vitae porta faucibus, mi lacus laoreet metus, at cursus leo est vel tellus. Sed ac posuere est. Nunc ultricies nunc neque, vitae ultricies ex sodales quis. Aliquam eu nibh in libero accumsan pulvinar. Nullam nec nisl placerat, pretium metus vel, euismod ipsum. Proin tempor cursus nisl vel condimentum. Nam pharetra varius metus non pellentesque.

Fifth level

Aliquam sagittis rhoncus vulputate. Cras non luctus sem, sed tincidunt ligula. Vestibulum at nunc elit. Praesent aliquet ligula mi, in luctus elit volutpat porta. Phasellus molestie diam vel nisi sodales, a eleifend augue laoreet. Sed nec eleifend justo. Nam et sollicitudin odio.

Sixth level

Cras in nibh lacinia, venenatis nisi et, auctor urna. Donec pulvinar lacus sed diam dignissim, ut eleifend eros accumsan. Phasellus non tortor eros. Ut sed rutrum lacus. Etiam purus nunc, scelerisque quis enim vitae, malesuada ultrices turpis. Nunc vitae maximus purus, nec consectetur dui. Suspendisse euismod, elit vel rutrum commodo, ipsum tortor maximus dui, sed varius sapien odio vitae est. Etiam at cursus metus.

Documentation

Overview

When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use pf-c-content as container. It can handle almost any HTML tag:

  • <p> paragraphs
  • <ul> <ol> <dl> lists
  • <h1> to <h6> headings
  • <blockquote> quotes
  • <em> and <strong>

This pf-c-content class can be used in any context where you just want to (or can only) write some text.

This component is an exception to the variable system since we style type selectors.

Usage

Class
Applied to
Outcome
.pf-c-content
<div>, <section>, or <article>
Generates vertical rhythm and typographic treatment to html elements.
.pf-m-visited
.pf-c-content, <a>
Modifies all links in a content block to include visited styles. Can also be applied to a single link in a content block.
.pf-m-plain
<ul>, <ol>
Removes the list marker and indentation.

CSS variables

.pf-c-content--pf-c-content--MarginBottom
1rem
.pf-c-content--pf-c-content--LineHeight
1.5
.pf-c-content--pf-c-content--FontSize
1rem
.pf-c-content--pf-c-content--FontWeight
400
.pf-c-content--pf-c-content--Color
#151515
.pf-c-content--pf-c-content--heading--FontFamily
'"RedHatDisplay", "Overpass", overpass, helvetica, arial, sans-serif'
.pf-c-content--pf-c-content--h1--MarginTop
1.5rem
.pf-c-content--pf-c-content--h1--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h1--LineHeight
1.3
.pf-c-content--pf-c-content--h1--FontSize
1.5rem
.pf-c-content--pf-c-content--h1--FontWeight
400
.pf-c-content--pf-c-content--h2--MarginTop
1.5rem
.pf-c-content--pf-c-content--h2--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h2--LineHeight
1.5
.pf-c-content--pf-c-content--h2--FontSize
1.25rem
.pf-c-content--pf-c-content--h2--FontWeight
400
.pf-c-content--pf-c-content--h3--MarginTop
1.5rem
.pf-c-content--pf-c-content--h3--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h3--LineHeight
1.5
.pf-c-content--pf-c-content--h3--FontSize
1.125rem
.pf-c-content--pf-c-content--h3--FontWeight
400
.pf-c-content--pf-c-content--h4--MarginTop
1.5rem
.pf-c-content--pf-c-content--h4--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h4--LineHeight
1.5
.pf-c-content--pf-c-content--h4--FontSize
1rem
.pf-c-content--pf-c-content--h4--FontWeight
400
.pf-c-content--pf-c-content--h5--MarginTop
1.5rem
.pf-c-content--pf-c-content--h5--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h5--LineHeight
1.5
.pf-c-content--pf-c-content--h5--FontSize
1rem
.pf-c-content--pf-c-content--h5--FontWeight
400
.pf-c-content--pf-c-content--h6--MarginTop
1.5rem
.pf-c-content--pf-c-content--h6--MarginBottom
0.5rem
.pf-c-content--pf-c-content--h6--LineHeight
1.5
.pf-c-content--pf-c-content--h6--FontSize
1rem
.pf-c-content--pf-c-content--h6--FontWeight
400
.pf-c-content--pf-c-content--small--MarginBottom
1rem
.pf-c-content--pf-c-content--small--LineHeight
1.5
.pf-c-content--pf-c-content--small--FontSize
0.875rem
.pf-c-content--pf-c-content--small--Color
#6a6e73
.pf-c-content--pf-c-content--a--Color
#06c
.pf-c-content--pf-c-content--a--TextDecoration
none
.pf-c-content--pf-c-content--a--hover--Color
#004080
.pf-c-content--pf-c-content--a--hover--TextDecoration
underline
.pf-c-content--pf-c-content--a--visited--Color
#40199a
.pf-c-content--pf-c-content--blockquote--PaddingTop
1rem
.pf-c-content--pf-c-content--blockquote--PaddingRight
1rem
.pf-c-content--pf-c-content--blockquote--PaddingBottom
1rem
.pf-c-content--pf-c-content--blockquote--PaddingLeft
1rem
.pf-c-content--pf-c-content--blockquote--Color
#6a6e73
.pf-c-content--pf-c-content--blockquote--BorderLeftColor
#d2d2d2
.pf-c-content--pf-c-content--blockquote--BorderLeftWidth
3px
.pf-c-content--pf-c-content--ol--PaddingLeft
1.5rem
.pf-c-content--pf-c-content--ol--MarginLeft
1.5rem
.pf-c-content--pf-c-content--ol--nested--MarginTop
0.5rem
.pf-c-content--pf-c-content--ol--nested--MarginLeft
0.5rem
.pf-c-content--pf-c-content--ul--PaddingLeft
1.5rem
.pf-c-content--pf-c-content--ul--MarginLeft
1.5rem
.pf-c-content--pf-c-content--ul--nested--MarginTop
0.5rem
.pf-c-content--pf-c-content--ul--nested--MarginLeft
0.5rem
.pf-c-content--pf-c-content--ul--ListStyle
disc outside
.pf-c-content--pf-c-content--li--MarginTop
0.5rem
.pf-c-content--pf-c-content--dl--ColumnGap
3rem
.pf-c-content--pf-c-content--dl--RowGap
1rem
.pf-c-content--pf-c-content--dt--FontWeight
700
.pf-c-content--pf-c-content--dt--MarginTop
1rem
.pf-c-content--pf-c-content--dt--sm--MarginTop
0
.pf-c-content--pf-c-content--hr--Height
1px
.pf-c-content--pf-c-content--hr--BackgroundColor
#d2d2d2
.pf-c-content a:hover--pf-c-content--a--Color
#004080
.pf-c-content a:hover--pf-c-content--a--TextDecoration
underline
.pf-c-content ol ul--pf-c-content--ul--MarginLeft
0.5rem
.pf-c-content ol ol--pf-c-content--ol--MarginLeft
0.5rem
.pf-c-content ul ul--pf-c-content--ul--MarginLeft
0.5rem
.pf-c-content ul ol--pf-c-content--ol--MarginLeft
0.5rem
.pf-m-overpass-font .pf-c-content--pf-c-content--h2--LineHeight
1.3
.pf-m-overpass-font .pf-c-content--pf-c-content--h4--FontWeight
700
.pf-m-overpass-font .pf-c-content--pf-c-content--h5--FontWeight
700
.pf-m-overpass-font .pf-c-content--pf-c-content--h6--FontWeight
700

View source on GitHub