The Wayback Machine - https://web.archive.org/web/20081204092255/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 Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Copyright 2008 Jupitermedia Corporation All Rights Reserved.

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

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
  Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A; with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs


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.