Globale linker
Book 1
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16/17
- Chapter 18/19
- Chapter 20
- Chapter 21
- Chapter 22/23
Book 2
Book 2 Ch. 1 Cascading Style Sheets
Cascading Style Sheets refer to the use of multiple style definitions in a single document. A style sheet file can link to every document in a web site, thus controlling the overall look and feel of the site.However, within any of the linked documents, a style header can override the linked style sheet. Within the same file, an inline style definition can override the style embedded in the header block, along with any style information from the linked style. The term «cascading» refers to inheritance, or the hierarchical relationship between linked, imported, embedded and inline styles.
- Linking to a style sheet
With this method a single style sheet controls multiple web pages. Each page must be linked to a style sheet by a plain text file with the .CSS file extension.
<link rel="stylesheet" type="text/css" href="style.css"> - Importing style information
Importing is done in the head section of the document. Importing will not work in Netscape.
<style type="text/css">
@import url(http://www.domain.com/styles.css);
</style> - Embedding style information
This method defines the style information in the head section of the document.
<head>
........
<style type="text/css">
<!--
h1 {color: #FF0000}
-->
</style>
........
</head> - Inline style
Are added to existing HTML tags or used with the <span> tag. In any case the style is defined with the style-attribute.
<h1 style="color: #FF0000">Headline</h1>
<span style="font-weight: bold">Bold text</span>
Should only be used for occasional style changes.
See the CSS-tutorial for changeable style elements
The syntax for style definitions:
selector {property: value; property: value......}
h1 {color: #FFFF00; font-size: 120%;}
A style guide is a standards document or manual that establishes a set of conventions or rules for performing common tasks.
Changes from CSS1 to CCS2 include:
- Media types
- Paged media
- Aural Style sheet
For the hearing impaired
- Bi-directional text
- Font-support
- Relative and absolute positioning
