Using W3.CSS

Another way to create a responsive design, is to use a responsive stylesheet, like W3.CSS, which you REALLY don't want to look at!! This style sheet makes it easy to develop webpages that look nice at any size; desktop, laptop, tablet, or phone. Have a look at this responsive webpage designed using the following HTML file:


<!DOCTYPE html>
  <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="w3.css">
    </head>
    <body>
<div class="w3-container w3-orange">
  <h1>W3.CSS Demonstration</h1>
  <h3>Resize this responsive page!</h3>
</div>
<div class="w3-row-padding">
  <div class="w3-third">
    <h2>London</h2>
    <p>London is the capital city of England.</p>
    <p>It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
  </div>
  <div class="w3-third">
    <h2>Paris</h2>
    <p>Paris is the capital of France.</p>
    <p>The Paris area is one of the largest population centers in Europe, with more than 12 million inhabitants.</p>
  </div>
  <div class="w3-third">
    <h2>Tokyo</h2>
    <p>Tokyo is the capital of Japan.</p>
    <p>It is the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
  </div>
</div>
    </body>
  </html>
Back button Table of Contents Next button