RESPONSIVE SITE

6 WAYS TO MAKE YOUR SITE RESPONSIVE!
  1. Viewport

  2. Use a meta viewport tag to tell the browser how to control the dimensions and scale of your page.

    <meta name="viewport" content="width=device-width, initial-scale=1.0"> Viewport
  3. Layouts

  4. There are many different layouts you can choose from, with one of the most popular being Flexbox.

    Flexbox arranges items either in a single row or wraps them onto multiple rows as the available space decreases.

    .items {display:flex; justify-content: space-between;} Layouts
  5. Media Queries

  6. Easily change styles based on the type of device rendering the content or the device's features.

    Consider parameters like width, height, orientation, ability to hover, and whether the device is a touchscreen.

    @media print {/*print styles go here*/}
  7. Relative Units

  8. Avoid using fixed units like pt, px, cm, etc. Instead, use percentages (%).

    div.fullwidth {width:50%;} Relative Units
  9. Patterns

  10. Ensure that your responsive web pages look good on both large desktop screens and small mobile phones.

    Patterns
  11. Mobile First

  12. Design your website with a mobile-first approach to optimize breakpoints based on content.

    Aim to have the fewest possible breakpoints to maintain simplicity.

    Mobile First
© 2022 POJJY.EDU. All rights reserved!