diff --git a/slaeforms/static/styles.css b/slaeforms/static/styles.css index 3e1886a..2d6e90b 100644 --- a/slaeforms/static/styles.css +++ b/slaeforms/static/styles.css @@ -97,7 +97,22 @@ iframe { margin: auto; } +.video-container { + position: relative; + padding-bottom: 56.25%; /* 16:9 aspect ratio */ + height: 0; + overflow: hidden; + max-width: 100%; + background: #000; +} +.video-container iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} form { text-align: center; diff --git a/slaeforms/templates/standard_template.html b/slaeforms/templates/standard_template.html index b138540..072c4e5 100644 --- a/slaeforms/templates/standard_template.html +++ b/slaeforms/templates/standard_template.html @@ -7,10 +7,12 @@ {% if (title != "") %}