THE WORLD'S LARGEST WEB DEVELOPER SITE

W3.CSS Downloads


Download W3.CSS

Download version 4 from this link: https://www.w3schools.com/w3css/4/w3.css

Download version 3 from this link: https://www.w3schools.com/w3css/3/w3.css


W3.CSS is Free

W3.CSS is free to use. No license is necessary.


How To use W3.CSS

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

Example

<!DOCTYPE html>
<html>
<title>My Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

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

Or download w3.css and run it from your own web site:

Example

<!DOCTYPE html>
<html>
<title>My Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

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

If you put w3.css in a subfolder, add the folder name between slashes:

Example

<!DOCTYPE html>
<html>
<title>My Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

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

If you place w3.css at the root of your web, add a slash:

Example

<!DOCTYPE html>
<html>
<title>My Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


Changelog Version 4

Version Description
4.04 Added "float:none" to w3-bar-item inside w3-bar-block
4.03 Corrected a minor bug in "w3-col m3"
4.02 Added version 3 text colors
4.01 Lightened the color gray/grey.
Fixed some border color errors.
4.0 Version 4.0  March 2017.

Changelog Version 3

Version Description
3.04 Added "float:none" to w3-bar-item inside w3-bar-block
3.03 Adjusted dropdown padding in w3-bar-block.
3.02 Redefined w3-card to be equal to w3-card-2.
3.01 Adjusted padding in w3-ul.
3.0 Version 3.0  March 2017. Download 3.0
3.00 Adjusted w3-bar-item padding in w3-bar-block.
2.99 Small adjustments in dropdowns.
2.98 Added w3-display-position.
2.97 Added w3-sidebar and w3-bar-block.
2.96 Added the ability to center a w3-bar.
2.95 Added dropdown to w3-bar.
2.94 Added w3-block.
2.93 Added w3-bar and w3-bar-item.
Added w3-button.
2.92 Not released.
2.91 Added w3-cell-row.
Added w3-cell-top, w3-cell-middle, and w3-cell-bottom.
Added w3-mobile.
2.9 Version 2.9  February 2017. Download 2.9
2.90 Added w3-cell.
2.89 Added w3-navblock for testing.
2.88 Added w3-layout-col.
2.87 Added w3-layout classes.
2.86 Not released.
2.85 Added w3-hover-border-blue-grey.
2.84 Added w3-display-hover.
Adjusted some transition values.
Removed the ability to select/highlight text in w3-btn-block.
2.83 Enabled w3-input and w3-btn in w3-navbar.
2.82 Added w3-display-left and w3-display-right.
Adjusted w3-ripple values.
2.81 All color classes now accept both grey and gray.

Added w3-greyscale, w3-greyscale-max, w3-greyscale-min and w3-greyscale-hover.
Added w3-grayscale, w3-grayscale-max, w3-grayscale-min and w3-grayscale-hover.
Added w3-sepia, w3-sepia-max, w3-sepia-min and w3-sepia-hover.
Added w3-opacity-max and w3-opacity-min.
2.8 Version 2.8  September 2016. Download 2.8
2.7 June 2016.
2.6 May 2016.
2.5 April 2016.
2.0 February 2016.
1.5 September 2015.
1.0 May 2015.

Validating W3.CSS

Validating W3.CSS might return some errors.

You will often get some errors when you run W3C validations.
There will always be some browser specific values outside the current W3C specification.

PropertyDescription
pointer-events Invalid property in CSS3, but suggested for CSS4.
Used in W3.CSS to remove hand pointer from disabled elements.
user-select Invalid property in CSS3, but suggested for CSS4.
Used in W3.CSS to remove text selection from clickable elements.
pseudo-class :valid Invalid value in CSS3, but suggested for CSS4.
Used in W3.CSS to indicate valid input.
@-webkit-keyframes Added to W3.CSS to make animations work in webkit browsers (older versions of Chrome, Safari, and Opera).

Customize W3.CSS

W3.CSS includes basic fonts and font sizes.

You can customize W3.CSS by changing these settings:

Example

html {
  font-family: Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Verdana, sans-serif;
  font-weight: 400;
  line-height: 1;
  margin: 20px 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {font-weight: inherit;}
h1 {font-size: 36px}
h2 {font-size: 30px}
h3 {font-size: 24px}
h4 {font-size: 20px}
h5 {font-size: 18px}
h6 {font-size: 16px}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}
Try It Yourself »

W3.CSS is Normalized

Normalizing a style sheet is done to:

  • Correct browser bugs
  • Remove browser inconsistencies
  • Assure common browser defaults
  • Normalize the styles of all HTML elements
  • Add CSS improvements

An extract from Normalize.css is used in W3.CSS.

This makes W3.CSS display HTML consistently in all browsers, and in line with modern web standards.