Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

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 · 1148 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 jean-louis67, 3 weeks ago
2 309 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 312 3 weeks ago
General · by Veehem, 4 weeks ago
0 264 4 weeks ago
General · by milkboy, 4 weeks ago
0 267 4 weeks ago
General · by ian russell, 1 month ago
2 336 1 month ago