From fc4f040520bda037d0b9fb89669cfc2e4f009bb5 Mon Sep 17 00:00:00 2001 From: Anthony Dumas Date: Mon, 11 Apr 2016 22:30:38 +0200 Subject: [PATCH] Responsive Video --- css/freelancer.css | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/css/freelancer.css b/css/freelancer.css index d9b14d1..c3302c1 100644 --- a/css/freelancer.css +++ b/css/freelancer.css @@ -219,7 +219,7 @@ section.contact { background: #6C6F7D; } -/* About Section*/ +/* About section*/ section.etudes { color: #fff; background: #6C6F7D; @@ -535,3 +535,20 @@ h6 { margin-left:auto; margin-right:auto; } + +.video-container { +position: relative; +padding-bottom: 56.25%; +padding-top: 30px; +height: 0; +overflow: hidden; +} +.video-container iframe, +.video-container object, +.video-container embed { +position: absolute; +top: 0; +left: 0; +width: 100%; +height: 100%; +}