ShapeYourPath
(current)
Run Code
Live Code Editor-Materialize CSS Media
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> <!--Import materialize.css--> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <!--Let browser know website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="robots" content="noindex,nofollow"> <title>Materialize CSS Responsive Embeds</title> <style type="text/css"> p { font-size: 18px; } h2 { font-size: 28px; } .custom-padding { height: 80px; } </style> </head> <body> <div class="container"> <h1 class="center-align">Materialize CSS Responsive Embeds</h1> <p class="center-align"> Materialized CSS responsive embeds can be created by assigning video inside the video element and assigning .video-container class to the video container base class. </p> <div class="row hide-on-small-only"> <div class="col s12"> <div class="video-container"> <iframe width="853" height="480" src="//www.youtube.com/embed/Q8TXgCzxEnw?rel=0" frameborder="0" allowfullscreen></iframe> </div> </div> </div> </div> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> </body> </html>
Output :
Running
MATERIALIZE-TUTORIAL
MATERIALIZE-CSS-MEDIA OTHER EXAMPLES
Materialize CSS Responsiev Image Example
Materialize CSS Circular images Example
Materialize CSS Media Example
Materialize CSS Responsive Videos Example