Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How to align images(and text)

Started by yami 9 years ago · 3 replies · 11616 views
9 years ago

Hello,

I want to do a page where an image is aligned to the left and text wraps around it, i tried a couple ways i found googling(they involved html) but didnt really work.

How do I do it?
Thanks

9 years ago

It didnt work, probably because I am also resizing the image at the same time and I dont know how to add both attributes?
Anyway, it works it i use it like this:
![YamiFrankc](defaultyami.png?resize=400,400){.right}

👍 1
9 years ago

That only works if you have markdown extra enabled, and that is a bit buggy for my liking, you can do it without the extra {.right}, with this:

TXT
![YamiFrankc](defaultyami.png?resize=400,400&classes=right)
👍 1

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 11 months ago
6 977 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 771 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 685 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 609 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 994 2 years ago