16
LAB#13 Responsive Web Design By Yaowaluck Promdee, Sumonta Kasemvilas 322432 Web Design Technology

Lab#13 responsive web

Embed Size (px)

DESCRIPTION

Responsive web, Get start responsive, trend web design

Citation preview

Page 1: Lab#13 responsive web

LAB#13 Responsive Web DesignBy Yaowaluck Promdee, Sumonta Kasemvilas 322432 Web Design Technology

Page 2: Lab#13 responsive web

What is “Responsive Web Design” ?

Page 3: Lab#13 responsive web
Page 4: Lab#13 responsive web

Getting Started

1. Add a viewport

2. Apply simple styling

3. Set your first breakpoint

4. Constrain the maximum width of the design

5. Alter the padding and reduce text size

6. Adapt elements to wide viewport

7. Wrapping up

https://developers.google.com/web/fundamentals/getting-started/your-first-multi-screen-site/responsive?hl=en

Page 5: Lab#13 responsive web

Content and structure Final Site

Page 6: Lab#13 responsive web

Add a viewport

<meta name content="width=device-width, initial-scale=1">

Using the meta viewport value width=device-width instructs

the page to match the screen’s width in device independent

pixels. This allows the page to reflow content to match

different screen sizes, whether rendered on a small mobile phone or a large desktop monitor.

Page 7: Lab#13 responsive web

Apply simple styling

Page 8: Lab#13 responsive web

Constrain the maximum width of the design

Page 9: Lab#13 responsive web

Adjusting Screen Resolution

This shows the the most significant screen sizes, from the smallest to the largest.

Page 10: Lab#13 responsive web

Example

http://learn.shayhowe.com/advanced-html-css/responsive-web-design

Relative Fluid Layouts (%)

Page 11: Lab#13 responsive web

Set your first breakpoint

Page 12: Lab#13 responsive web

Meta Viewport

Page 13: Lab#13 responsive web

@media (query) {

/* CSS Rules used when query matches */

}

Apply media queries based on viewport size

@media screen and (min-width: 800px) and (max-width:

1200px) { .test { font-size: 14pt; } }

http://www.designil.com/what-is-responsive-web-design-1.html

Example

Page 14: Lab#13 responsive web

attribute Result

min-widthRules applied for any browser width over the value defined in the

query.

max-widthRules applied for any browser width below the value defined in the

query.

min-heightRules applied for any browser height over the value defined in the

query.

max-heightRules applied for any browser height below the value defined in the

query.

orientation=portraitRules applied for any browser where the height is greater than or

equal to the width.

orientation=landscape Rules for any browser where the width is greater than the height.

Media queries

Page 15: Lab#13 responsive web

Create a Web page to present

“Search Engine Optimization”

from information provided using HTML5 and

CSS can be Responsive on mobile screen

In hours time

Assignment#13

Page 16: Lab#13 responsive web

Q / A?

Email:[email protected]