Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How can I set the mobile view of the site to maintain image aspect ratio?

Solved by pamtbaau View solution

Started by Chrysovalantis Nikolaou 3 years ago · 4 replies · 1384 views
3 years ago

I built my school's site on Grav and it seems great. My only problem is that when I view the pages from mobile at vertical view the images fit to the screen width but they don't keep the aspect ratio.
It also happens at my PC when I lessen the width of my browser window.

You can check here: https://gym-irakl.ser.sch.gr/site/el

Can I set it to keep the image aspect ratio?

3 years ago

Thank you. So, my problem was using the TinyMCE editor which doesn't support markdown commands. With a simple markdown image implementation the images became responsive.

Can I use markdown syntax in TinyMCE plugin?

3 years ago

@laviq,

Can I use markdown syntax in TinyMCE plugin?

Although slightly related to this topic, I would consider this to be a new topic. Would you mind creating a new topic with a suitable title?

3 years ago

Thank you again. Everything is fixed. I should prefer a markdown editor instead of TinyMCE and everything works perfectly now!

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 1 day ago
2 41 18 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago