adventures in responsive design

6

Click here to load reader

Upload: kevin-davis

Post on 11-Jul-2015

69 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Adventures in responsive design

Adventures in Responsive Design

kpd

Page 2: Adventures in responsive design

Design that is aware of its context

Responds differently based on the context in which it’s being viewed

What is Responsive Design

Page 3: Adventures in responsive design

For public sites

To take advantage of mobile

Phone form factor

Tablet form factor

Desktop resolutions

Why is this necessary?

Page 4: Adventures in responsive design

Do nothing (hope for the best)

Client-side adaptation

Change the angle brackets that get rendered

Three Different Responses

Page 5: Adventures in responsive design

CSS 3 @media tag

Client-side Rendering Technique

Page 6: Adventures in responsive design

In HTML:<div id="main">

<div id="content"><h1>@Page.Title</h1>@RenderBody()

</div><div id="sidebar">

<p><b>Summer camp for geeks. Join us.</b></p><a href="http://www.thatconference.com"><img

src="Images/thatConference.jpg" alt="That Conference"/></a></div>

</div>

In CSS:@media only screen and (max-width: 950px) {

#main #content {float: none; width: 100%;

} #main #sidebar {

display: none; }

}

Example/Demo