Please enable JavaScript.
Coggle requires JavaScript to display documents.
Module 2: HTML, CSS, and Javascript for Web Developers: Cascading Style…
Module 2: HTML, CSS, and Javascript for Web Developers: Cascading Style Sheets Level 3 (CSS3)
Power of CSS
-
In Real-World
-
CSS
-
styling includes
- color
- positioning
- size
- ...
-
-
-
Element, Class and Id Selectors
CSS Selector
determines which HTML element or set of HTML elements, the CSS declaration is applied to
-
-
-
Combining Selectors
3 common combinators
- Element with class selector (selector.class)
e.g. p.big, .highlight.big
- Child selector (selector > selector)
e.g. article > p, article > .colored
- Descendent selector (selector selector)
e.g. article p, .colored p
Combinators
combine other selectors to specify useful relationship to each other and the location of content in the document.
2 additional combinators
- Adjacent sibling selector (selector + selector)
e.g. p + img
- General sibling selector (selector ~ selector)
e.g. p ~ img
Pseudo-Class Selectors
-
-
5 popular pseudo classes
- : link ⏋generally grouped together
- : visited ⏌
- : hover ⏋ generally grouped together
- : active ⏌
- : nth-child(...)
- Introduction to Twitter Bootstrap
-
- CSS Rules Conflict Resolution and Text Styling
- Introduction to Responsive Design
Book Recommendation
TOP PICK
Combo
- HTML & CSS: Designing and Building Web Sites by Jon Duckett
- JavaScript & jQuery: Interactive Front-End Development by Jon Duckett