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

W3.CSS Kitchen Sink

W3.CSS at a Glance

This page demonstrates many W3.CSS classes on one page.

Use it as a quick visual reference or as inspiration for your own pages.


Containers

Header

London

London is the capital of England.

It is one of the world's great cities.

Footer


Panels

I am a panel.

Panels are useful for notes, quotes, and alerts.


Cards

Card

A simple card with text.

Alps

French Alps

Card 4

A card with a larger shadow.


Buttons


Responsive

w3-content centers content with a maximum width.


w3-auto creates a responsive centered container.



W3.CSS Layout Choices

Layout Use For
Flexbox Rows or columns, alignment, and flexible items
Grid Modern layouts with rows and columns
Rows Simple halves, thirds, and quarters
Cells Simple equal-height, table-like layouts
12-Column Layout Compatibility with older W3.CSS responsive layouts

For new layouts, Flexbox and Grid are usually the most flexible choices.

The older W3.CSS layout classes remain supported for compatibility and convenience.


Flexbox

1

2

3


Left
Center
Right

Fixed
Flexible

Grid

1

2

3

4

5

6


Rows

1/2

1/2


1/3

1/3

1/3


1/4

3/4


Cells

Top

Middle

Bottom


12-Column Layout

The 12-column system is supported for compatibility with existing W3.CSS websites.

s12 m6 l4

s12 m6 l4

s12 m12 l4



Display

Top Left
Top Right
Bottom Left
Bottom Right
Middle

Round

Round Round Large Round XLarge


Borders

Border

Left Border

Top Border

Bottom Border


Padding and Margins

Padding

Margin


Notes and Quotes

Note

This is a note.

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

Albert Einstein


Alerts

Danger!

Something needs immediate attention.

Warning!

Something might need attention.

Success!

The operation completed successfully.

Info

Here is some useful information.


Tables

First Name Last Name Points
Jill Smith 50
Eve Jackson 94
Adam Johnson 67

Lists

  • Members

  • John
  • Paul
  • Lisa

Images

Lights

Responsive width

Forest

Rounded

Mountains

Circle

Normal

Normal

Opacity

Opacity

Grayscale

Grayscale

Sepia

Sepia


Tags and Badges

2 8 New Warning Danger Info


Input Forms


Bars and Navigation



Dropdowns


Accordions

Accordion content.


Tabs

London

London is the capital of England.


Progress Bars

25%

50%

Modal

×

Modal

This is a modal dialog.

Footer


Tooltips

Hover over this text Tooltip content


Effects

Normal

w3-opacity

w3-grayscale-max

w3-sepia-max


Animations

Top

Left

Right

Zoom


Pagination

« 1 2 3 4 »

Dark Mode

Dark Content

W3.CSS color classes can be used to build dark interfaces.


Colors

Red

Green

Blue

Yellow

Amber

Olive

Indigo

Lime

Light Grey

Black



×

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, cookies and privacy policy.

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