Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // set some elements responsive
- img, object, embed, video {
- height: auto;
- max-width: 100%;
- }
- // and the hack for IE8
- @media \0screen {
- img, object, embed, video {
- width: auto; /* for ie 8 */
- }
- }
- // and for video
- .video {
- position: relative;
- padding-bottom: 56.25%;
- height: 0;
- overflow: hidden;
- @media (max-width: 979px) {
- margin-bottom: 20px;
- }
- }
- .video iframe,
- .video object,
- .video embed {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement