1 / 4

Responsive design and final review

Responsive design and final review. Matt Brendzel GA Boston Programs Producer. William Neely CEO, Piecewise.com. Responsive design. Fixed, fluid, elastic. Fixed Container with set width Fluid Use percentages to define widths/sizes

Download Presentation

Responsive design and final review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Responsive design and final review Matt Brendzel GA Boston Programs Producer William Neely CEO, Piecewise.com

  2. Responsive design Fixed, fluid, elastic Fixed • Container with set width Fluid • Use percentages to define widths/sizes • Ex: body{font-size:100%; width:100%;} col1,col2{width:50%; float:left; font-size:150%;} Elastic • Use ems to define sizes, % for width

  3. Responsive design Ems/rems Font-size:100% • Standardizes browser • 1em=16px (standard) Ems vs % Em/% based on inherited font-size http://alistapart.com/articles/howtosizetextincss REM (root em) • Uses font-size set for html element Body{ Font-size:100%; /*hint for non mathies: set font-size:62.5%; to make 1em 10px*/ } *{ font-size:1.5em; } Div{ font-size:1.2em; }

  4. Responsive design Media queries Media queries exercise Busy hands responsive Img technique (use % and height:auto) Word-wrap:break-word @media only screen and • (max-width: xPx) • (min-width: xPx) • (max-device-width:xPx) • (min-device-width:xPx) For iPad • (orientation: portrait) • (orientation: landscape) Separate multiple clauses with “and”

More Related