Wednesday, April 6, 2011

Web Page Design

Hello class 
  • I have been working with CSS style sheet and this what I learned.

In CSS the Selector is the element.
Example:
p{color:#ff0000;

html {color:#ff0000;

p or html is the selector.

  • Declaration blocks  begin with a brace { and end with another brace }, between these braces with "" semi-colon is the Declaration.
Examples:
h2 {
  font-family: "Century Gothic", "Gill Sans", sans-serif;
  color: #000000;
  margin-bottom: 0;
}

  • Property is located before the value and begins with a colon.
Examples:
Margin
font
border
color 

  • Value can be.
Examples:
length                              
percentage
color
url
shape

  • Class Selector started with a (.) and then selector.
Examples:
. special {
   color: #FF0000;
   font-family: " Monotype Corsiva";
}

  • Group Selector helps to save time styling the color at the same time.
Examples:
h1, h2, h3, h4, h5, h6 { color: #F1CD33; }