Skip to content

Commit b479efb

Browse files
committed
Fixes #18492: Document .h1-.h6, change docs mention of inline usage to varying elements
1 parent fea7feb commit b479efb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/content/typography.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These styles can be found within `_reboot.scss`, and the global variables are de
2424

2525
## Headings
2626

27-
All HTML headings, `<h1>` through `<h6>`, are available. `.h1` through `.h6` classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.
27+
All HTML headings, `<h1>` through `<h6>`, are available.
2828

2929
<div class="bd-example bd-example-type">
3030
<table class="table">
@@ -66,6 +66,17 @@ All HTML headings, `<h1>` through `<h6>`, are available. `.h1` through `.h6` cla
6666
<h6>h6. Bootstrap heading</h6>
6767
{% endhighlight %}
6868

69+
`.h1` through `.h6` classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
70+
71+
{% example html %}
72+
<p class="h1">h1. Bootstrap heading</p>
73+
<p class="h2">h2. Bootstrap heading</p>
74+
<p class="h3">h3. Bootstrap heading</p>
75+
<p class="h4">h4. Bootstrap heading</p>
76+
<p class="h5">h5. Bootstrap heading</p>
77+
<p class="h6">h6. Bootstrap heading</p>
78+
{% endexample %}
79+
6980
### Customizing headings
7081

7182
Use the included utility classes to recreate the small secondary heading text from Bootstrap 3.

0 commit comments

Comments
 (0)