Flexible Content
http://www.netmagazine.com/tutorials/create-fluid-width-videos
• set width to 100%, remove height
• add a wrapper to maintain aspect ratio
• use JS to detect and maintain size
Thursday, June 21, 12
Slide 21
Slide 21 text
Media Queries
• width, height
• device-width, device-height
• orientation
• aspect ratio
• several others
http://www.w3.org/TR/css3-mediaqueries/
Thursday, June 21, 12
Slide 22
Slide 22 text
Media Queries
@media all and (min-width: 600px) {
/* styles for 600px and up here
small-rez first */
}
@media all and (max-width: 600px) {
/* styles for 600px and down here
large-rez first */
}
Thursday, June 21, 12
Slide 23
Slide 23 text
Media Queries
Large Resolution First
PRO: IE works by default
CON: Smallest devices load all assets
Small Resolution First
PRO: More logical (build up vs tear down)
CON: IE support is tricky
Thursday, June 21, 12
Slide 24
Slide 24 text
Process
Design & planning deliverables
become very difficult to define
when so many resolutions are
supported.
http://bit.ly/M6TOlF
Thursday, June 21, 12
Slide 25
Slide 25 text
Think Responsively
Thursday, June 21, 12
Slide 26
Slide 26 text
Thursday, June 21, 12
Slide 27
Slide 27 text
Thursday, June 21, 12
Slide 28
Slide 28 text
Questions?
Ben Callahan
@bencallahan
Shawn Maida
@eecoder
Thursday, June 21, 12