HOME

CSS Basic
CSS HOME
CSS Introduction
CSS Syntax
CSS How To
CSS Background
CSS Text
CSS Font
CSS Border
CSS Margin
CSS Padding
CSS List

CSS Advanced
CSS Dimension
CSS Classification
CSS Positioning
CSS Pseudo-class
CSS Pseudo-element
CSS Media Types

Examples/Quiz
CSS Examples
CSS Quiz Test

References
CSS2 Reference
CSS2 Print
CSS2 Aural
CSS Units
CSS Colors
CSS Colorvalues
CSS Colornames
Proposal Kit
Please visit our sponsors !

CSS Examples

Previous Next

Background

Set the background color
Set an image as the background
How to repeat a background image vertically
How to repeat a background image horizontally
How to place the background image
A fixed background image (this image will not scroll with the rest of the page)
All the background properties in one declaration

Text

Set the color of the text
Specify the space between characters
Align the text
Decorate the text
Indent text
Control the letters in a text

Font

Set the font of a text
Set the size of the font
Set the style of the font
Set the variant of the font
Set the boldness of the font
All the font properties in one declaration

Border

Set the style of the four borders
Set different borders on each side
Set the color of the four borders
Set the width of the bottom border
Set the width of the left border
Set the width of the right border
Set the width of the top border
All the bottom border properties in one declaration

All the left border properties in one declaration
All the right border properties in one declaration
All the top border properties in one declaration
All the width of the border properties in one declaration
All the border properties in one declaration

Margin

Set the left margin of a text
Set the right margin of a text
Set the top margin of a text
Set the bottom margin of a text
All the margin properties in one declaration

Padding

Set the left padding of a tablecell
Set the right padding of a tablecell
Set the top padding of a tablecell
Set the bottom padding of a tablecell
All the padding properties in one declaration

List

The different list-item markers in unordered lists
The different list-item markers in ordered lists
Set an image as the list-item marker
Place the list-item marker
All list properties in one declaration

Dimension

Set the height and width of an image
Increase the space between lines

Classification

How to display an element?
Set where an image will appear in another element
Position an element relative to its normal position
Position all headings relative to its normal position
Position an element with an absolute value
How to make an element invisible
Change the cursor

Positioning

Set the shape of an element
Set the left and top position of an element
What should happen when an element's content is too big to fit in a specified area
Vertical alignment of an image
Place an element "behind" another element
Place an element "behind" another element 2

Pseudo-classes

Add different colors to a hyperlink
Add other styles to hyperlinks

Pseudo-elements

Make the first letter special in a text
Make the first line special in a text


Previous Next

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


Search W3Schools:


What Others Say About Us

Does the world know about us? Check out these places:

Dogpile Alta Vista MSN Google Excite Lycos Yahoo Ask Jeeves


We Help You For Free. You Can Help Us!


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.

Copyright 1999-2002 by Refsnes Data. All Rights Reserved


Validate How we converted to XHTML Validate

ASPHits
Active Server Pages Resource Web Site


Your own Web Site?

Read W3Schools
Hosting Tutorial



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

University Online
Master Degree
Bachelor Degree


Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search