Difference between revisions of "HTML/CSS"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
[http://www.htmldog.com/guides/cssadvanced/specificity/] [http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html] ([http://www.stuffandnonsense.co.uk/archives/images/specificitywars-05v2.jpg]),[http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/]
 
[http://www.htmldog.com/guides/cssadvanced/specificity/] [http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html] ([http://www.stuffandnonsense.co.uk/archives/images/specificitywars-05v2.jpg]),[http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/]
  
 +
== Selectors ==
 
* http://twostepmedia.co.uk/cssselectors/
 
* http://twostepmedia.co.uk/cssselectors/
 
* http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/
 
* http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/
Line 84: Line 85:
 
* http://24ways.org/2006/compose-to-a-vertical-rhythm - oft' linked to
 
* http://24ways.org/2006/compose-to-a-vertical-rhythm - oft' linked to
  
 +
* [http://jransijn.tumblr.com/post/5304050674/resources-vertical-rhythm-in-webdesign] [http://designbyelle.com.au/journal/2008/02/14/vertical-rhythm-recent-resources/]
 +
 +
=== Web ===
 
* http://www.gridlover.net/
 
* http://www.gridlover.net/
* http://drewish.com/tools/vertical-rhythm
+
* http://drewish.com/tools/vertical-rhythm - calculator, px based
 +
* http://topfunky.com/baseline-rhythm-calculator/ - px based
  
* https://github.com/pyrsmk/vertical-rhythmic - sass mixins (no sure if worth it)
+
=== JS ===
 +
* [http://samuel.bowles.es/2007/08/syncotype/ Syncotype-Alt]
 +
* http://www.fortes.com/2008/jmetronome-using-jquery-to-keep-typographic-rhythm
  
* https://github.com/OliverJAsh/vertical-rhythm
+
=== Bookmarklets ===
 
+
* http://gridwax.gs/ - great
* http://gridwax.gs/
 
 
* http://sfcgeorge.github.com/Grid-Bookmarklet/
 
* http://sfcgeorge.github.com/Grid-Bookmarklet/
 +
* http://scribu.net/util/baseline-checker-bookmarklet.html
  
 +
=== CSS ===
 
* [http://forrst.com/posts/Check_Your_Vertical_Rhythm_With_CSS3_gradients-6XE Check Your Vertical Rhythm With CSS3 gradients]
 
* [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://basehold.it/
* http://scribu.net/util/baseline-checker-bookmarklet.html
 
* http://www.fortes.com/2008/jmetronome-using-jquery-to-keep-typographic-rhythm
 
  
* [http://jransijn.tumblr.com/post/5304050674/resources-vertical-rhythm-in-webdesign] [http://designbyelle.com.au/journal/2008/02/14/vertical-rhythm-recent-resources/]
+
=== Sass ===
 +
* https://github.com/pyrsmk/vertical-rhythmic - sass mixins (no sure if worth it)
 +
* https://github.com/OliverJAsh/vertical-rhythm
  
 
== Typography ==
 
== Typography ==

Revision as of 02:24, 11 June 2012


to merge from bits of design.

General

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]

Selectors

h1 + h2
  <h1></h1><h2></h2>

h1 > h2
  <h1><h2></h2></h1>

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

Tips

Responsive

background

Animations & transitions

Resets, etc.

Grid

Vertical rhythm

Web

JS

Bookmarklets

CSS

Sass

Typography

Font symbols

Sprites

Header, footer

Menus

Gradients

Misc