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

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

Solved by pamtbaau View solution

Started by Mariano 2 years ago · 2 replies · 2512 views
2 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
2 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
2 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 24 hours ago
2 72 3 hours ago
Support · by gtx, 1 week ago
4 234 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 283 5 days ago
Support · by Anna, 3 weeks ago
9 340 1 week ago
Support · by TomW, 2 weeks ago
4 192 2 weeks ago