O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Introduction to Responsive Web Design

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
Web Layout
Web Layout
Carregando em…3
×

Confira estes a seguir

1 de 32 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Anúncio

Semelhante a Introduction to Responsive Web Design (20)

Anúncio

Introduction to Responsive Web Design

  1. 1. RESPONSIVE / BOOTSTRAP 22-3376 Web Design 2 // Columbia College Chicago
  2. 2. What is Responsive Web Design?
  3. 3. Responsive web design (RWD) is a web development approach that creates dynamic changes to the appearance of a website, depending on the screen size and orientation of the device being used to view it
  4. 4. mediaqueri.es
  5. 5. Media Types <head>! <link rel="stylesheet" type="text/css" href="stylesheet.css">! <link rel="stylesheet" type="text/css" href="print.css" media="print">! </head> The media attribute specifies what media/device the target resource is optimized for. The most common usage is for overriding styles for printing.
  6. 6. Media Types @media print {! p {font-size: 20px;! color: red;! }! } The @media rule allows different style rules for different media in the same style sheet.
  7. 7. Media Queries Media Queries is a CSS3 module allowing content rendering to adapt to conditions such as screen resolution (e.g. smartphone screen vs. computer screen). ! A media query consists of a media type and one or more expressions, involving media features, which resolve to either true or false. http://www.w3.org/TR/css3-mediaqueries/
  8. 8. Media Queries @media print {! p {font-size: 20px;! color: red;! }! }
  9. 9. Viewport <meta name=“viewport” content=“width=device-width, initial-scale=1.0> Many small devices will automatically scale up or down your website to around 960px. This header tag tells the browser to scale the content to the actual window size of the device.
  10. 10. Breakpoints
  11. 11. Breakpoints A simple version from the framework ‘Base’: @media only screen and (min-width: 740px) and (max-width: 959px) { } @media only screen and (max-width: 739px) { } http://matthewhartman.github.io/base/
  12. 12. @media only screen and (min-width: 740px) and (max-width: 959px) { ! When viewed on a screen AND Minimum width of screen is at least 740px but not more than 959px ! Breakpoints
  13. 13. Breakpoints @media only screen and (max-width: 739px) {} (default) @media only screen and (min-width: 740px) and (max-width: 959px) {}
  14. 14. Tutorial ! 1 Responsive Test
  15. 15. What is Mobile First?
  16. 16. What is Mobile First? ! It Mobile up, not Desktop down.
  17. 17. Mobile-first approach from Bootstrap 3.0: @media (min-width: 768px) { } @media (min-width: 992px) { } @media (min-width: 1200px) { } ! Breakpoints (Mobile-First) http://getbootstrap.com/
  18. 18. Breakpoints: Mobile First (Bootstrap) (default) @media (min-width: 768px) @media (min-width: 998px) @media (min-width: 1200px)
  19. 19. Tutorial ! 2 Bootstrap Simple
  20. 20. Tutorial ! 3 Bootstrap Nav

×