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

ASOS Prince's Trust Get Into Technology - CSS

Si Jobling
February 23, 2016

ASOS Prince's Trust Get Into Technology - CSS

Si Jobling

February 23, 2016
Tweet

More Decks by Si Jobling

Other Decks in Technology

Transcript

  1. Prince’s Trust Get Into Tech Basic Coding with Si Jobling

    Tuesday 23 February 2016 CSS Adding some style
  2. • What is CSS? • Curly braces and colons •

    Elements, classes and IDs • Colo(u)rs • Fonts • Decorative stuff (borders, backgrounds) • Layout and sizes
  3. Basic Coding with Si Jobling a { color: white; }

    US spellings! 216 reserved words
  4. Basic Coding with Si Jobling button { background: url(my-image.gif) repeat

    top center; } path to any image any repeating position (US!)
  5. Basic Coding with Si Jobling .my-box { width: 300px; height:

    300px; margin: 100px; } 100px outside
  6. Basic Coding with Si Jobling .my-box { width: 300px; height:

    300px; margin: 100px; padding: 50px; } 50px inside
  7. Basic Coding with Si Jobling .my-box { width: 300px; height:

    300px; margin: 100px; padding: 50px; padding-top: 100px; } one side only
  8. display: block / inline / inline-block; float: left / right

    / none; position: absolute / relative / fixed; top / left / bottom / right: 10px; list-style: none / bullet / square;
  9. • Set your page colours (fonts and background) • Apply

    borders to image thumbnails • Set font sizes of product details and prices • Apply colours and borders to form elements • Place thumbnails next to each other • Position product price top right of thumbnail