পৃষ্ঠাসমূহ

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

Thursday, March 16, 2017

W3.CSS - Containers

HTML5 has the following container elements:
  • <div> - Provides a generic container to HTML content.
  • <header> - Represents the header section.
  • <footer> - Represents the footer section.
  • <article> - Represents articles.
  • <section> - Provides a generic container for various types of sections.
W3.CSS provides w3-container as a primary class to style all the above-mentioned containers. W3.CSS also has other classes like w3-border, w3-red, w3-teal, w3-padding-32 to add further styling attributes to the containers.

Example

The following example showcases the use of w3-container class to style various containers.
w3css_containers.htm
<html>
   <head>
      <title>The W3.CSS Containers</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://www.w3schools.com/lib/w3.css">
   </head>
   <body>
      <header class="w3-container w3-red">
         <h1>HTML5 Tutorial</h1>
      </header>
      <div class="w3-container w3-border w3-teal">
         <p>HTML5 is the latest and most enhanced version of HTML.Technically, HTML is not a programming language, but rather a mark up language.</p>
      </div>
      <article class="w3-container"> 
         <p>The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality. The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5.</p> 
      </article>
      <section class="w3-container"> 
         <p>HTML5 is designed, as much as possible, to be backward compatible with existing web browsers. New features build on existing features and allow you to provide fallback content for older browsers.</p> 
      </section>
      <footer class="w3-container w3-red"> 
         <p>Copyright @TutorialsPoint.COM</p>
      </footer>
   </body>
</html>

Result

Verify the result.
W3.CSS also provides containers with hide/close capability. See the following example:
w3css_hide_container.htm
<html>
   <head>
      <title>The W3.CSS Containers</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://www.w3schools.com/lib/w3.css">
   </head>
   <body>     
      <div class="w3-container w3-border w3-teal">
         <span class="w3-closebtn" onclick="this.parentElement.style.display='none'">X</span>
            <p>Close container by clicking on the X in the upper right corner.</p>         
      </div>      
   </body>
</html>

Result

Verify the result.

No comments:

Post a Comment