CSS ROCKS
CSS ROCKS
CSS is known as Cascading Style Sheets.It is used to be more specific in the design of a web page. CSS uses the elements in HTML and designs them with selectors, declaration blocks, and property/value. (p. 172) Instead of using brackets to include elements in, CSS uses curly braces Within the culry braces is the declaration block (p. 172).There are different ways that CSS is applied to HTML. Those ways are: Inline CSS, Internal Style Sheets, Header style information, and External Style Sheets. Inline CSS is where Style is applied directly to elements through declarations. Internal Style Sheet involves putting style directly into the HTML. External Style Sheet is where CSS rules are in a seperate file with a .css extension and then that file is referenced inside the head.In Line is not used very much because for one reason it is in efficient. Using External is the best way to go because with it this way you can style many style sheets the same way easily just by using one sheet(pp.174-178). CSS has a short hand included in it. This combines many parts of style for example border-color: blue includes these selectors
border-bottom-color:
border-top-color:
border-left-color:
border-right-color:
(p. 179)
This makes it easier because the designer does not have to type in so many different parts.
There are different ways to measure size with CSS. Those ways are: Pixels (px), Em's (em), Points (pt), Percents (%), Inches (in) Centimeters (cm) and Millimeters (mm). Each of these serves a different purpose and is more valuable in different situations(p. 181). You can also use things like keywords, and Hex values in CSS (p. 182).
Using CSS makes life a whole lot easier. There is now CSS3 which allows for other parts such as Media Queries Transitions, and 2d Transformations (pp. 195-196). I am grateful that we have CSS.
Information for this blog was found in the Book Interact With Web Standards: A Holistic Approach to Web Design.
The Benefits of Using CSS
- CSS clearly defines what is being done to the html. There is no question when I type background-color: that the color of the background will be whatever color I type in.
- There are different measurement options with CSS. Example: for different sizes you can choose to use Pixels, Em's, Points, Percents, and/or Inches Centimeters and Millimeters.
- With CSS3 there are a lot of powerful options including one of my favorites, "Media Queries". LDS Website output: LDS Website
No comments:
Post a Comment