Introduction to CSS
- 2. (the size and style you see are
just browser defaults)
Tuesday, April 16, 13
- 3. <head>
<title>Resume</title>
<link rel="stylesheet" href="reset.css">
</head>
Tuesday, April 16, 13
- 10. h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 11. selector
h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 12. h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 13. declaration
h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 14. property value
h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 15. h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 16. h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 17. selector { property: value; }
h2 {
font-size: 18px;
margin-bottom: 10px;
}
Tuesday, April 16, 13
- 20. body {
font-family:Helvetica,Arial,sans-serif;
margin-left: 20%;
margin-right: 20%;
margin-top: 30px;
margin-bottom: 30px;
}
Tuesday, April 16, 13
- 21. h2 {
font-size: 18px;
margin-bottom: 10px;
border-bottom: 2px solid #000000;
padding-bottom: 2px;
}
Tuesday, April 16, 13
- 25. The rule:
Element selectors apply to all elements defined
Tuesday, April 16, 13
- 28. The rule:
Class selectors help further refine HTML types
Class selectors may be used multiple times / page
Tuesday, April 16, 13
- 31. The rule:
ID selectors help further refine HTML types
ID selectors may be used ONE time / page
Tuesday, April 16, 13