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 · 1033 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 Jerry Hunt, 4 days ago
2 133 1 day ago
General · by pamtbaau, 1 day ago
1 93 1 day ago
General · by Andy Miller, 2 days ago
0 77 2 days ago
General · by Marcel, 12 months ago
6 388 5 days ago
General · by Duc , 6 days ago
3 72 6 days ago