Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------
- CSS:
- -------------------------------------------------------------------------------------------------
- /* Responsive iFrame */
- .responsive-iframe-container {
- position: relative;
- padding-bottom: 56.25%;
- padding-top: 30px;
- height: 0;
- overflow: hidden;
- }
- .responsive-iframe-container iframe,
- .vresponsive-iframe-container object,
- .vresponsive-iframe-container embed {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
- -------------------------------------------------------------------------------------------------
- HTML :
- -------------------------------------------------------------------------------------------------
- <!-- Responsive iFrame -->
- <div class="responsive-iframe-container">
- [... iframe code]
- </div>
Add Comment
Please, Sign In to add comment