পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Tuesday, March 7, 2017

Materialize - Media

Materialize has several classes to make images and video responsive to different sizes.
  • responsive-img - It makes an image to resize itself based on screen size.
  • video-container - For responsive container having embedded videos
  • responsive-video - To make HTML5 videos responsive.

Example

materialize_media.htm
<!DOCTYPE html>
<html>
   <head>
      <title>The Materialize Example</title>
   <meta name="viewport" content="width=device-width, initial-scale=1">      
   <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>           
      <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>             
   </head>
   <body class="container"> 
      <h2>Materialize Media Examples</h2>
      <hr/>
      <h3>Images Demo</h3>
      <div class="card-panel">
         <img src="html5-mini-logo.jpg" alt="" class="responsive-img">  
      </div>      
      <div class="card-panel">
         <img src="html5-mini-logo.jpg" alt="" class="circle responsive-img">   
      </div>  
      <h3>Responsive Embeded Video Demo</h3>
      <div class="video-container">
         <iframe width="540" height="200" src="http://www.youtube.com/embed/Q8TXgCzxEnw?rel=0" frameborder="0" allowfullscreen></iframe>
      </div>
      <div class="video-container">
         <video  width="300" height="200" controls autoplay>
            <source src="http://www.tutorialspoint.com/html5/foo.ogg" type="video/ogg" />
            <source src="http://www.tutorialspoint.com/html5/foo.mp4" type="video/mp4" />
            Your browser does not support the video element.
         </video>
      </div>
   </body>
</html>

Result

Verify the result.
Materialize has several classes to make images and video responsive to different sizes.
  • responsive-img - It makes an image to resize itself based on screen size.
  • video-container - For responsive container having embedded videos
  • responsive-video - To make HTML5 videos responsive.

Example

materialize_media.htm
<!DOCTYPE html>
<html>
   <head>
      <title>The Materialize Example</title>
   <meta name="viewport" content="width=device-width, initial-scale=1">      
   <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>           
      <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>             
   </head>
   <body class="container"> 
      <h2>Materialize Media Examples</h2>
      <hr/>
      <h3>Images Demo</h3>
      <div class="card-panel">
         <img src="html5-mini-logo.jpg" alt="" class="responsive-img">  
      </div>      
      <div class="card-panel">
         <img src="html5-mini-logo.jpg" alt="" class="circle responsive-img">   
      </div>  
      <h3>Responsive Embeded Video Demo</h3>
      <div class="video-container">
         <iframe width="540" height="200" src="http://www.youtube.com/embed/Q8TXgCzxEnw?rel=0" frameborder="0" allowfullscreen></iframe>
      </div>
      <div class="video-container">
         <video  width="300" height="200" controls autoplay>
            <source src="http://www.tutorialspoint.com/html5/foo.ogg" type="video/ogg" />
            <source src="http://www.tutorialspoint.com/html5/foo.mp4" type="video/mp4" />
            Your browser does not support the video element.
         </video>
      </div>
   </body>
</html>

Result

Verify the result.

No comments:

Post a Comment