Difference between revisions of "HTML/CSS"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
=== Tips ===
 
=== Tips ===
 
* http://paulirish.com/2012/box-sizing-border-box-ftw/ [http://www.jefftk.com/news/2012-02-18.html]
 
* http://paulirish.com/2012/box-sizing-border-box-ftw/ [http://www.jefftk.com/news/2012-02-18.html]
 +
 +
=== background ===
 +
* http://whereswalden.com/files/mozilla/background-size/more-examples.html
  
 
=== Resets, etc. ===
 
=== Resets, etc. ===

Revision as of 18:39, 27 February 2012


CSS

tag
.class
#id
display: block - default 100% width, flows vertically
display: inline - consumes width of content, flows horizontally
display: inline-block
float - floats element next to containing box or other floated element
position: absolute - out of flow

Tips

background

Resets, etc.

Grid

Vertical rhythm

Typography

Header, footer

Menus

Gradients

Misc