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

Add option to define the width of the inserted video (mp4)

Solved by pamtbaau View solution

Started by Mariano 3 years ago · 2 replies · 2588 views
3 years ago

Hi,
inserted images scale nicely to 100% width.
inserted videos don't scale, they take the native width, which is not responsive to the browser.

as a work around I change

TXT
![example](example.mp4 "this is an example") 

into the html code and include

TXT
<video style="width:100%" 

this works fine, although the absolute url to the video can change when the number prefix of the menu changes .. :-(

can you include the width: 100% into the next release?

thanks,

Mariano

last edited 02/16/24 by pamtbaau
3 years ago Solution

@favorinus, Please help the community help you...

How you can help the community is well laid out in sticky post /forum/general/welcome-to-the-grav-cms-community-forums-t8083

Please update you post.

Btw. feature request should be made in the Github repository of either Grav, theme, or plugin.

But before creating a feature request, take a look at the docs and learn how attributes can be added when adding image/video in Markdown, how custom css can be added to a theme, etc.

last edited 02/15/24 by pamtbaau
3 years ago

Thank you,
yes I solved it using custom.css .

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 139 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 51 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago