Skip to content

Commit ceb8b50

Browse files
committed
Add more guides to stock CSS classes
1 parent 65dae11 commit ceb8b50

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

guide/src/format/mdbook.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,29 @@ contents (sidebar) by including a `\{{#title ...}}` near the top of the page.
317317

318318
## HTML classes provided by mdBook
319319

320-
The `class="warning"` can be applied to make a warning, or similar note, stand out.
320+
<img class="right" src="images/rust-logo-blk.svg" alt="The Rust logo">
321+
322+
### `class="left"` and `"right"`
323+
324+
These classes are provided by default, for inline HTML to float images.
325+
326+
```html
327+
<img class="right" src="images/rust-logo-blk.svg" alt="The Rust logo">
328+
```
329+
330+
### `class="hidden"`
331+
332+
HTML tags with class `hidden` will not be shown.
333+
334+
```html
335+
<div class="hidden">This will not be seen.</div>
336+
```
337+
338+
<div class="hidden">This will not be seen.</div>
339+
340+
### `class="warning"`
341+
342+
To make a warning or similar note stand out, wrap it in a warning div.
321343

322344
```html
323345
<div class="warning">

0 commit comments

Comments
 (0)