Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Implementing Awesome: An HTML/CSS Workshop

Shoshi
June 08, 2012

Implementing Awesome: An HTML/CSS Workshop

We go over what parts of HTML5 and CSS3 you can use right away and how to degrade gracefully in order to appease the older browsers. Then, we play with some of the awesome visual candy you can make using the latest properties.
- Presented at PyGotham

Shoshi

June 08, 2012
Tweet

More Decks by Shoshi

Other Decks in Programming

Transcript

  1. Text: Formatting <strong> = Importance (bold) <b> = Stylistically Different

    <em> = Emphasis (italic) <i> = Alternate Voice or Mood
  2. Change your DOctype <!DOCTYPE html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML

    4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> VS
  3. div.box { width: 250px; padding: 135px 25px; margin: 60px auto;

    background: #FFF; color: #444; } div.box p { text-align: center; }
  4. div.box:before { content: ''; position: absolute; top: -30px; left: -30px;

    width: 300px; height: 300px; z-index: -1; background: rgba(255,221,0,0.5); } div.box { position: relative; }
  5. div.box:after { content: ''; position: absolute; top: 30px; left: 30px;

    width: 300px; height: 300px; z-index: -2; background: rgba(255,165,0,0.5); }
  6. div.box:after { animation-name: rotate; animation-duration: 0.6s; animation-iteration-count: infinite; animation-timing-function: linear;

    } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }