Monday, October 24, 2011

CSS Readings

On the making of a most basic CSS webpage...
1. Use either NotePad, TextEdit, KEdit. No word processors. The first line of HTML file tells the browser what type of HTML it is. < and > tags tell browser where to put text of document.
2. To add color: Start with a style sheet embedded inside the HTML file, <style> element. Style sheets in CSS are made up of rules: a. selector tells browser which part of the doc is affected by the rule b. property specifies what aspect of the layout is being set and c. valu is the value of the style property.
3. Then add fonts, make sure you put in alt fonts in case someone is using an old school web browser.
4. Add a navigation bar with 'padding' or 'position'
5. Style the Links, <a> element for hyperlinks
6. Adding a horizontal line to separate the text that is significant at the bottom.
7. Put style sheet in separate file so all pages can then point to it and apply same style

Chapter 2 CSS
A rule is a statement about 1 stylistic aspect of 1 or more elements. A style sheet is a set of 1 or more rules that apply to an HTML document.
A rule has: 1. selector: link between the HTML document and style. Specifies which elements are affected by the declaration. 2. declaration: apart of the rule that sets forth what the effect will be. made of 2 parts: the property, quality or characteristic that something possesses and value, the precise specification of the property.
Gluing combines the style sheet and HTML document by:
1. applying basic, document wide style sheet for the document by using the style element
2. applying the style sheet to an individual element using the style attribute
3. link an external style sheet to document using the link element
4. import a style sheet using CSS @import notation
Must use a CSS enhanced browser to display web page
Properties inherit from parent unless it is the background

No comments:

Post a Comment