From fc5b23749b5c593ca4dc90ae4d0a1686c4ec92ea Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 19 May 2017 14:38:37 +0300 Subject: juick-www: fix video embed --- juick-www/src/main/static/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'juick-www/src/main/static/style.css') diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css index 012282cf..05369c22 100644 --- a/juick-www/src/main/static/style.css +++ b/juick-www/src/main/static/style.css @@ -750,8 +750,22 @@ fieldset { margin-top: 25px; } .embedContainer { + position: relative; + padding-bottom: 56.25%; + padding-top: 30px; + height: 0; + overflow: hidden; text-align: center; } +.embedContainer iframe, +.embedContainer object, +.embedContainer embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} .embedContainer img { max-width: 100%; } -- cgit v1.2.3