The Wayback Machine - https://web.archive.org/web/20090621114811/http://www.webreference.com:80/html/tutorial8/


spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

An Inquiry Into Values


Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

In tutorial 7 you learned how to use CSS font and text properties to alter the fonts and text layout in your HTML documents. However, I have left three questions unanswered:

First, when we introduced Cascading Style Sheets, I explained why they where called Style Sheets, but what does the Cascading part mean?

Second, when I talked about the possible values for the font and text properties, I mentioned "initial values," but didn't explain how these are calculated. What are the initial values of CSS properties?

Third, I used a number of units when discussing the possible values of CSS properties, but never explained what these units mean. So what's the difference between an em and an ex?

All of these and more questions will be answered in today's tutorial on CSS property values.

The topics we will discuss in this tutorial are the following:

Contents of this TutorialPage
1.Style Works in Mysterious Ways1
User Style Sheets1
User Agent Style Sheets1
@import rules1
2.Navigating the Cascade2
!important Rules2
The Cascading Order2
Specificity2
Now Forget All That2
3.The Style Sheet's Bequest3
Specified, Computed and Actual values3
Inheritance3
Percentages and Relative Values4
Line Height and the Navigator Inheritance Bug4
4.Length Values and their Units5
Absolute Units5
Relative Units5
Integers and Real Numbers5
The inherit Value5
URIs6
Color Units6
The color property6
5.Example: Units compared7
6.Exercises8
Finding Your Display's DPI8
Unit Conversion8

Let's start with an explanation of cascading...

Front Page12345678

http://www.internet.com

Produced by Stephanos Piperoglou

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info
Copyright 2009 WebMediaBrands Inc. All Rights Reserved.

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Make Prettier URLs with Apache's Mod Rewrite · Testing your DTD XML Schema Validation · Consuming a Web Service using ASP.NET Ajax
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Ready for Off-the-Shelf VoIP? · Secrets to Telework Success for Small Businesses · Intel to Host Live Nehalem Q&A;


All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/html/tutorial8/
Created: Oct 30, 1998
Revised: Nov 4, 1998

Morty Proxy This is a proxified and sanitized view of the page, visit original site.