Hello there!

Let's learn something today.

YOU'RE BUILDING

Pharmasift Part I

ROADMAP

Frontend

DIFFICULTY LEVEL

Beginner

Sections
0 / 33 Chapters Completed (0%)

4. Implementing Desktop First Approach

The desktop-first approach is a design methodology where web development begins with designing for larger screens (like desktops) and then adapting it for smaller screens (like mobile devices). This approach prioritizes creating a robust layout for larger screens and then adjusting it for smaller ones.

Key Points:

  1. Starting with Desktop Design:

    • Designing the website layout considering larger screens, with more space and detailed content presentation.

  2. Creating Layouts for Desktop:

    • Using media queries or CSS techniques to design layouts that look good on bigger screens.

      /* Example of a desktop layout */
      @media (min-width: 1024px) {
        /* Styles for desktop screens go here */
        .container {
          width: 80%;
          margin: 0 auto;
        }
      }
      

🙌 Congratulations, You just created a Responsive Website.

Now our step should be to design for smaller screens. Let’s discuss this in the next chapter.