-
Notifications
You must be signed in to change notification settings - Fork 20
feat: add CSS float and alignment support for images and figures #1174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
linawolf
merged 2 commits into
TYPO3-Documentation:main
from
CybotTM:fix/1172-image-figure-float
Feb 28, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
147 changes: 147 additions & 0 deletions
147
Documentation-rendertest/ImagesAndFigures/FloatAndAlignment.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,147 @@ | ||
| .. include:: /Includes.rst.txt | ||
|
|
||
| .. _images-float-and-alignment: | ||
|
|
||
| =================== | ||
| Float and alignment | ||
| =================== | ||
|
|
||
| .. contents:: This page | ||
| :backlinks: top | ||
| :class: compact-list | ||
| :depth: 99 | ||
| :local: | ||
|
|
||
|
|
||
| .. _images-float-image-left: | ||
|
|
||
| Image float left | ||
| ================ | ||
|
|
||
| .. |example-teaser-left| image:: ../images/q150_cccccc.png | ||
| :alt: Left floating image | ||
| :class: float-left with-shadow | ||
|
|
||
| |example-teaser-left| | ||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the image. | ||
|
|
||
|
|
||
| .. _images-float-image-right: | ||
|
|
||
| Image float right | ||
| ================= | ||
|
|
||
| .. |example-teaser-right| image:: ../images/q150_cccccc.png | ||
| :alt: Right floating image | ||
| :class: float-right with-shadow | ||
|
|
||
| |example-teaser-right| | ||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the image. | ||
|
|
||
|
|
||
| .. _images-float-figure-left: | ||
|
|
||
| Figure float left | ||
| ================= | ||
|
|
||
| .. figure:: ../images/q150_cccccc.png | ||
| :alt: Left floating figure | ||
| :class: float-left with-shadow | ||
|
|
||
| A figure floated to the left | ||
|
|
||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. Typesetting requires one or more fonts. The source | ||
| could be a manuscript, a previously composed version, or a plain text. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the figure. | ||
|
|
||
|
|
||
| .. _images-float-figure-right: | ||
|
|
||
| Figure float right | ||
| ================== | ||
|
|
||
| .. figure:: ../images/q150_cccccc.png | ||
| :alt: Right floating figure | ||
| :class: float-right with-shadow | ||
|
|
||
| A figure floated to the right | ||
|
|
||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. Typesetting requires one or more fonts. The source | ||
| could be a manuscript, a previously composed version, or a plain text. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the figure. | ||
|
|
||
|
|
||
| .. _images-float-align-left: | ||
|
|
||
| Figure align left | ||
| ================= | ||
|
|
||
| .. figure:: ../images/q150_cccccc.png | ||
| :alt: Left aligned figure | ||
| :align: left | ||
|
|
||
| A figure aligned left via :align: | ||
|
|
||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. Typesetting requires one or more fonts. The source | ||
| could be a manuscript, a previously composed version, or a plain text. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the figure. | ||
|
|
||
|
|
||
| .. _images-float-align-right: | ||
|
|
||
| Figure align right | ||
| ================== | ||
|
|
||
| .. figure:: ../images/q150_cccccc.png | ||
| :alt: Right aligned figure | ||
| :align: right | ||
|
|
||
| A figure aligned right via :align: | ||
|
|
||
| Typesetting is the composition of text by means of arranging physical | ||
| types[1] or the digital equivalents. Stored letters and other symbols | ||
| (called sorts in mechanical systems and glyphs in digital systems) | ||
| are retrieved and ordered according to a language's orthography for | ||
| visual display. Typesetting requires one or more fonts. The source | ||
| could be a manuscript, a previously composed version, or a plain text. | ||
|
|
||
| .. rst-class:: clear-both | ||
|
|
||
| Floating cleared. Below the figure. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.