Mobile First Intro

Mobile First Intro

Jump start into Mobile Web Design and Development by understanding the general concepts and the building process.

Marko Dugonjić

April 13, 2012

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

16 slides
  1. html { font-size: 10px; } p { font-size: 1.2rem; line-height:

    1.5em; margin: 0 0 1.5em } rem = root em
  2. Control layout via parent element (320 x 480) /* portrait:

    */ padding: 1.5em 6.25% /* landscape: */ padding: 1.5em 4.166% 6.25% od 320px = 20px 4.166% od 480px = 20px
  3. ADD HORIZONTAL VALUES @media (min-width: 768px) and (max-width: 1023px) {

    #primary { width: 50%; } #secondary { width: 25%; } /* padding: 1.5em 6.25%; */ } }
  4. general proportions, vertical spacing, colors, links etc. GENERAL DESIGN LAYOUT

    DESIGN horizontal spacing, float, position, overflow etc. 4 x {
  5. <link rel="stylesheet" href="general.css" /> <link rel="stylesheet" href="smartphone.css" media="only screen and

    (max-device-width: 480px)" /> . . . <link rel="stylesheet" href="desktop.css" media="only screen and (min-width: 1024px)" /> <!--[if lte IE 8]> <link rel="stylesheet" href="desktop.css" /> <![endif]-->

More Decks by Marko Dugonjić

Other Decks in Technology