Save a lot of work with CSS! In our CSS tutorial you will learn how to use CSS to
control the style and layout of multiple Web pages all at once. Start Learning CSS!
CSS Examples
Learn by 70 examples! With our editor, you can edit CSS, and click on a
test button to view the result. Try-It-Yourself!
At W3Schools you will find a complete CSS2 references about properties, units of measurements,
colors, and more. CSS2 References.
Table of Contents
CSS Basic
Introduction to CSS
This chapter explains what CSS is, and why it is so important to use it.
CSS Syntax
This chapter describes the CSS syntax and style sheet rules.
It also covers some examples.
CSS How to
This chapter explains the different ways you can insert a style sheet.
CSS Background
This chapter demonstrates the CSS background properties. You will see how to insert
and control the background-colors and images.
CSS Text
This chapter demonstrates the CSS text properties. You will see how to set a
color for a text, how to align text, how to indent the first line in a text, how
to decorate text, and more.
CSS Font
This chapter demonstrates the CSS font properties. You will see how to set a
font for a text, how to choose a font size, how to choose a font-style, and more.
CSS Border
This chapter demonstrates the CSS border properties. You will see how to set a
color for a border, how to set a width of a border, how to display different
borders on each side of an element, and more.
CSS Margin
This chapter demonstrates the CSS margin properties. You will see how to set
left, right, top, and bottom margins in elements.
CSS Padding
This chapter demonstrates the CSS padding properties. You will see how to set left, right, top, and bottom
padding in elements.
CSS List
This chapter demonstrates the CSS list properties. You will see how to
make a list, how to change the list-item marker, how to place the list-item
marker, and more.
CSS Advanced
CSS Dimensions
This chapter demonstrates the CSS dimension properties. You will see how to
control the height and width of an element, and how to increase the space
between two lines.
CSS Classification
This chapter demonstrates the CSS Classification properties. The Classification
properties allows you to control how to display an element, set where an image
will appear in another element, position an element relative to its normal
position, position an element using an absolute value, and how to control the
visibility of an element
CSS Positioning
This chapter demonstrates the CSS Positioning properties. You will see how to
specify the left, right, top, and bottom position of an element. You will also
see how to set the shape of an element, place an element behind another, and to
specify what should happen when an element's content is too big to fit in a
specified area.
CSS Pseudo-classes
This chapter describes the pseudo-classes that are used in
CSS to add different effects to some selectors, or to a part of some selectors.
CSS Pseudo-elements
This chapter describes the pseudo-elements that are used in
CSS to add different effects to some selectors, or to a part of some selectors.
CSS2 Media Types
This chapter describes how to use the Media types to specify how documents will
look in different media.
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.