Skip to content

Instantly share code, notes, and snippets.

@eshrinivasan
Last active March 8, 2017 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshrinivasan/9ad2fefb649f569429d2bc7098f2dafb to your computer and use it in GitHub Desktop.
Save eshrinivasan/9ad2fefb649f569429d2bc7098f2dafb to your computer and use it in GitHub Desktop.
block vs inline
id(one) vs class(many)
positioning
https://jsfiddle.net/nsshrinivasan/s06vtsvk/1/
https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning
@eshrinivasan
Copy link
Author

eshrinivasan commented Mar 8, 2017

CSS Specificity and how to calculate it
image

pseudo class:
:link, :visited, :hover, :active, :focus
100s

pseudo element:
:first-line, :first-letter, :after, :before
10s

Exercise:

ul#nav li.active a
body.ie7 .col_3 h2 > h3
#footer :not(nav) li
< li style="color:red" >
ul > li ul li ol li:first-letter

Ref:https://css-tricks.com/specifics-on-css-specificity/

@eshrinivasan
Copy link
Author

Box Model W3C vs IE

boxmodel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment