Difference between revisions of "HTML/CSS"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 69: Line 69:
  
 
* https://github.com/pyrsmk/vertical-rhythmic - sass mixins (no sure if worth it)
 
* https://github.com/pyrsmk/vertical-rhythmic - sass mixins (no sure if worth it)
 +
 +
* https://github.com/OliverJAsh/vertical-rhythm
 +
 +
* http://gridwax.gs/
 +
* http://sfcgeorge.github.com/Grid-Bookmarklet/
 +
 +
* [http://forrst.com/posts/Check_Your_Vertical_Rhythm_With_CSS3_gradients-6XE Check Your Vertical Rhythm With CSS3 gradients]
 +
* http://topfunky.com/baseline-rhythm-calculator/
 +
 +
* http://samuel.bowles.es/2007/08/syncotype/
 +
* http://basehold.it/
 +
* http://scribu.net/util/baseline-checker-bookmarklet.html
 +
 +
* [http://jransijn.tumblr.com/post/5304050674/resources-vertical-rhythm-in-webdesign] [http://designbyelle.com.au/journal/2008/02/14/vertical-rhythm-recent-resources/]
  
 
== Typography ==
 
== Typography ==
Line 92: Line 106:
 
== Misc ==
 
== Misc ==
 
* http://mathiasbynens.be/notes/css-without-html
 
* http://mathiasbynens.be/notes/css-without-html
 +
 +
* http://davatron5000.github.com/deCSS3/ - bookmarklet to test pre css3 browsers

Revision as of 18:41, 8 June 2012


to merge from bits of design.

Specificity

p has a specificity of 1 (1 HTML)
div p has a specificity of 2 (2 HTML; 1+1)
.sith has a specificity of 10 (1 class)
div p.sith has a specificity of 12 (2 HTML and a class; 1+1+10)
#sith has a specificity of 100 (1 id)
body #darkside .sith p has a specificity of 112 (HTML, id, class, HTML; 1+100+10+1)

[1] [2] ([3]),[4]

Positioning

display: block - default 100% width, flows vertically
display: inline - consumes width of content, flows horizontally
display: inline-block
  http://www.quirksmode.org/css/display.html
float - floats element next to containing box or other floated element
position: absolute - out of flow
rgba(0, 0, 0, 0.2) - shadow

https://github.com/andreasbovens/understanding-viewport

Tips

Responsive

background

Animations & transitions

Resets, etc.

Grid

Vertical rhythm

Typography

Font symbols

Sprites

Header, footer

Menus

Gradients

Misc