Is there a way to create floating images in markdown so that text flows around the image?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Archive
it is possible with markdown_extra.
If you enable it in the page header or system.yaml then you can add a CSS class after the markdown for the image:
TXT
 {.float_right}
Then you can just provide some CSS for that class in custom.css or something:
CSS
.float_right {
float: right;
margin: 0 0 1rem 1rem;
}
That works, thanks! I put my custom.css file in the theme's css directory, but will it remain there if there are updates to the theme? Or is there a proper location for CSS thats not part of the actual theme?
That's the correct location. It should not be effected by updates because it's not actually included in the theme itself.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1282 | 9 years ago | ||
| 2 | 889 | 9 years ago | ||
| 2 | 4019 | 9 years ago | ||
| 1 | 2894 | 9 years ago | ||
| 3 | 1078 | 9 years ago |