CSS, DHTML, and Ajax, Fourth Edition
Throughout this book, you'll need to enter different values to define different properties. These values come in various forms, depending on the need of the property. Some values are straightforwarda number is a numberbut others have special units associated with them. Values in chevrons (< >) represent one type of value (Table i.1). Words that appear in code font are literal values and should be typed exactly as shown.
Length Values
Length values come in two varieties:
I generally recommend using pixel sizes to describe font sizes for the greatest stability between operating systems and browsers. Color Values
You can describe color on the screen in a variety of ways (Table i.4), but most of these descriptions are just different ways of telling the computer how much red, green, and blue are in a particular color.
Percentages
Many of the properties in this book can have a percentage as their value. The behavior of this percentage value depends on the property being used. URLs
A Uniform Resource Locator (URL) is the unique address of something on the Web. This resource could be an HTML document, a graphic, a CSS file, a JavaScript file, a sound or video file, a CGI script, or any of a variety of other file types. URLs can be local, simply describing the location of the resource relative to the current document; or global, describing the absolute location of the resource on the Web and beginning with http://. In addition, throughout the book, I use links in the code examples. I use the number sign (#) as a placeholder in links that can be directed to any URL you want: <a href="#">...</a> The number sign is shorthand that links to the top of the current page. Replace these with your own URLs as desired.
|
Категории