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

Responsive Web

Responsive Web

Tech talk about responsive web layouts.

Avatar for Giorgi Jibladze

Giorgi Jibladze

April 25, 2014
Tweet

More Decks by Giorgi Jibladze

Other Decks in Technology

Transcript

  1. Responsive website 
 A website that responds to the device

    that accesses it and delivers the appropriate output for it.
  2. Fonts h1 {! font-size: 24px;! font-style: italic;! font-weight: normal;! }!

    ! ! 24  ÷  16  =  1.5   ! h1 {! font-size: 1.5em;! font-style: italic;! font-weight: normal;! }
  3. Fonts 11  ÷  24  =  0.458333333333333   ! ! h1

    a {! font-size: 0.458333333333333em;! color: #747474;! text-transform: uppercase;! }
  4. Grid #page {! margin: 20px auto;! width: 90%;! /* max-width:

    900px: */! }! ! #main-content {! float: left;! width: 62.8888889%; /* 566px / 900px */! }! ! #sidebar {! float: right;! width: 36.7777778%; /* 331px / 900px */! }
  5. paddings & margins #main-content {! padding: 0 8.480565371025%; /* 48px

    / 566px */! margin: 0 5.33333333%; /* 48px / 900px */! }
  6. Conclusion • More natural • One codebase for EVERYTHING •

    One URL - One output
 
 
 
 but, not always good..