Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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 · 1264 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 Andy Miller, 1 week ago
0 125 1 week ago
General · by lynbor, 1 month ago
3 448 2 weeks ago
General · by lynbor, 3 weeks ago
7 579 2 weeks ago
General · by Harry, 2 weeks ago
0 168 2 weeks ago
General · by Old Man Umby, 1 month ago
2 314 4 weeks ago