Udemy에서 Build Your First Website in 1 Week with HTML5 and CSS3 강의를 듣고 정리한 것이다.
Box Model
- margin : outside of the border
- border
- padding : within the border
- (html element)
Selectors
1. element selector
p {
text-align: center;
color: red;
}
2. id selector
#uniquemyid {
text-align: center;
color: red;
}
3. class selector
.jumbotron {
text-align: center;
color: red;
}
ID vs Class
- ID : unique, link to take a user to that section.
- IDs are more specific than classes so they will take priority.
Grid System (@bootstrap)
reference : http://blog.limhm.com/first-site/grid.html