26
Bild: Kevin Cornell Lånad från: http://www.alistapart.com/articles/responsive-web-design/

Responsive Design - Polopoly GeekNight Blixttal

Embed Size (px)

Citation preview

Page 1: Responsive Design - Polopoly GeekNight Blixttal

Bild: Kevin Cornell Lånad från: http://www.alistapart.com/articles/responsive-web-design/

Page 2: Responsive Design - Polopoly GeekNight Blixttal

Henrik EkelöfGränssnittsutvecklare på Valtech

Page 3: Responsive Design - Polopoly GeekNight Blixttal

Responsive Design

Page 4: Responsive Design - Polopoly GeekNight Blixttal

— ett nytt häftigt sätt att bygga mobilwebbVad det inte är:

Page 5: Responsive Design - Polopoly GeekNight Blixttal

Faktum är:

Page 6: Responsive Design - Polopoly GeekNight Blixttal

Det finns ingen mobilwebb.

Page 7: Responsive Design - Polopoly GeekNight Blixttal

Det finns inte en specifik webb för mobila enheter.

Allt är samma webb.

Page 8: Responsive Design - Polopoly GeekNight Blixttal

640 x 480

800 x 600

1024 x 768

Page 9: Responsive Design - Polopoly GeekNight Blixttal
Page 10: Responsive Design - Polopoly GeekNight Blixttal

1024 x 768

Page 11: Responsive Design - Polopoly GeekNight Blixttal

1024 x 768

320 x 480

Page 12: Responsive Design - Polopoly GeekNight Blixttal
Page 13: Responsive Design - Polopoly GeekNight Blixttal

1024 x 768

320 x 480

Page 14: Responsive Design - Polopoly GeekNight Blixttal

1024 x 768

320 x 480

768 x 1024

Page 15: Responsive Design - Polopoly GeekNight Blixttal

Flexibla bilderFlexibel grid Media queries

Responsive Design

Page 16: Responsive Design - Polopoly GeekNight Blixttal
Page 17: Responsive Design - Polopoly GeekNight Blixttal
Page 18: Responsive Design - Polopoly GeekNight Blixttal

/* Här ovanför finns grundstyle - färger, fonter etc */

article {

float: right;

width: 70%;

}

aside {

float: right;

width: 30%;

}

Page 19: Responsive Design - Polopoly GeekNight Blixttal

article {

float: right;

width: 70%;

}

aside {

float: right;

width: 30%;

}

@media all and (max-width: 768px) {

article,

aside {

float: none;

width: 100%;

}

}

Page 20: Responsive Design - Polopoly GeekNight Blixttal
Page 21: Responsive Design - Polopoly GeekNight Blixttal

article {

float: right;

width: 70%;

}

aside {

float: right;

width: 30%;

}

@media all and (max-width: 768px) {

article,

aside {

float: none;

width: 100%;

}

}

Page 22: Responsive Design - Polopoly GeekNight Blixttal
Page 23: Responsive Design - Polopoly GeekNight Blixttal
Page 24: Responsive Design - Polopoly GeekNight Blixttal

/* Här ovanför finns grundstyle - färger, fonter etc */

@media all and (min-width: 768px) {

article {

float: right;

width: 70%;

}

aside {

float: right;

width: 30%;

}

}

Page 25: Responsive Design - Polopoly GeekNight Blixttal

‣ Optimera inte webbplatser för specifika typer av enheter (varken små eller stora)

‣ Responsive Design är det sätt vi kommer bygga webb på den närmaste framtiden

‣ Jobba alltid nerifrån och upp med CSS

Page 26: Responsive Design - Polopoly GeekNight Blixttal

Tack!Henrik Ekelöf, Valtech

@henrikekelof