Skip to content

Commit

Permalink
Update docs/blocks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 authored Nov 18, 2024
1 parent 6ef0906 commit 130ff6c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,22 @@ The default MyST
(div-and-span)=
### `div` and `span` elements

You can add `<div>` and `<span>` elements to serve a similar purpose.
You can add `div` and `span` elements to serve a similar purpose.
Any classes and content that you add will be attached to the AST of your document.

For example, here's a div that uses [the HTML theme grid classes](https://jupyter-book.github.io/myst-theme/?path=/docs/components-grid-system--docs) to snap a div to the right:

```html
<div class="col-gutter-right">I'm off to the right!</div>
```markdown
:::{div}
:class: col-gutter-right
I'm off to the right!
:::
```

<div class="col-gutter-right">I'm off to the right!</div>
:::{div}
:class: col-gutter-right
I'm off to the right!
:::

## Comments

Expand Down

0 comments on commit 130ff6c

Please sign in to comment.