diff options
author | Lasse Borly <contact@lasseborly.dk> | 2016-09-22 22:52:11 +0300 |
---|---|---|
committer | Lasse Borly <contact@lasseborly.dk> | 2016-09-22 22:52:11 +0300 |
commit | 58edeebecbe8957009027e6f238d3981d37d70a4 (patch) | |
tree | 416b05c04771746fa702785bdf2ea3e034dae9a5 | |
parent | 2ce5bcc081adf267ec9d81f6e65bdb8691abd749 (diff) |
added some css classes for video wrapping
-rw-r--r-- | static/css/styles.css | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/static/css/styles.css b/static/css/styles.css index ca46216..8795ded 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -100,3 +100,18 @@ section#paginator #next { #post { margin: 0 0 100px 0; } + +.videoWrapper { + position: relative; + padding-bottom: 56.25%; /* 16:9 */ + padding-top: 25px; + height: 0; + margin: 10px; +} +.videoWrapper iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} |