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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

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 · 2396 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 Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 19 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago