Menu
×
     ❯   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING

W3.CSS Tutorial


W3
CSS

W3.CSS is a CSS framework for developing websites and web apps.

It provides equality for all browsers (Chrome, Edge, Firefox, Safari, Opera) on all devices (Desktop, Laptop, Tablet, Mobile).

W3.CSS is free, open source, and uses standard CSS only (no JavaScript).

Start learning W3.CSS now »

Note

w3-grid and w3-flex is new in W3.CSS 5.0.

w3-grid vs w3-flex

w3-grid is for two-dimensional layout, with rows AND columns.

w3-flex is for one-dimensional layout, with rows OR columns.

Example

<div class="w3-container w3-teal">
  <h1>My Header</h1>
</div>

<img src="img_car.jpg" alt="Car">

<div class="w3-container">
  <p>A car is a wheeled, self-powered motor vehicle used for transportation.</p>
</div>

<div class="w3-container w3-teal">
  <p>My Footer</p>
</div>
Try It Yourself »

A Quality Alternative to Bootstrap

W3.CSS is a modern CSS framework developed by the W3Schools team. It's similar to Bootstrap when it comes to build responsive, mobile-friendly websites, but it is lighter, simpler, and faster, and does not rely on JavaScript or external libraries like jQuery.

"Make it as simple as possible, but not simpler."
Albert Einstein


How To Use W3.CSS

To use W3.CSS in your web site, just add a link to w3.css from your web pages:

Example

<link rel="stylesheet" href="https://www.w3schools.com/w3css/5/w3.css">
Try It Yourself »

Or download w3.css from:

https://www.w3schools.com/w3css/5/w3.css

and add a local link to youre downloaded w3.css file:

Example

<link rel="stylesheet" href="w3.css">


W3.CSS Crash Course

How to create web page that looks nice on all devices (desktop, laptop, tablet, and phone).

Band Template

W3.CSS Web Site Templates

We have created 50 responsive W3CSS templates for you to use.

You are free to modify, save, share, use or do whatever you want with them:

Catering Template

Food Template

See Demo »

Portfolio Template

Portfolio Template

See Demo »

Architect Template

Architect Template

See Demo »

Cafe Template

Cafe Template

See Demo »

Wedding Template

Wedding Template

See Demo »

House Design Template

See Demo »

Food Template

Food Template

See Demo »

See All Templates »


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.