Read the statement by Michael Teeuw here.
Issue with setting height as a percentage
-
I am trying to set the height of MMM-EmbedYoutube to 75% but when I do it uses the default 315px as specified in the modules configuration. If I use a 750 as the height it works fine. I can specify width with a percentage, but not height. Any help is appreciated.
-
@zack949 said in Issue with setting height as a percentage:
I am trying to set the height of MMM-EmbedYoutube to 75% but when I do it uses the default 315px as specified in the modules configuration. If I use a 750 as the height it works fine. I can specify width with a percentage, but not height. Any help is appreciated.
'hey did you find a solution of this problem . I need to fix the same issue
-
@Hualm the module is expecting the number of pixels high and wide.
and hard codes that into the iframe tag properties.
I don’t know if u can override that w css
in custom.css.MMM-EmbedYoutube iframe { height: 75%; width: 75%; }