Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive breakpoints #25

Open
M4TThys123 opened this issue May 22, 2023 · 0 comments
Open

Responsive breakpoints #25

M4TThys123 opened this issue May 22, 2023 · 0 comments

Comments

@M4TThys123
Copy link
Owner

Breakpoints op basis van mijn XD designs & Bootstrap classes.

/* XS (for phones - screens < than 768px wide) */
@media (max-width: 767px) {
  /* CSS rules for phones go here */
}

/* SM (for tablets - screens ≥ than 768px wide) */
@media (min-width: 768px) {
  /* CSS rules for tablets go here */
}

/* MD (for small laptops - screens ≥ than 992px wide) */
@media (min-width: 992px) {
  /* CSS rules for small laptops go here */
}

/* LG (for laptops and desktops - screens ≥ than 1200px wide) */
@media (min-width: 1200px) {
  /* CSS rules for laptops and desktops go here */
}

Breakpoints op basis

Ik kwam op basis van een video KevinPowell dat ik mijn media queries niet helemaal correct schrijf tussen XS <> SM screens.

  • XS: max-width: 767px
  • SM: min-width: 768pxEr zit een pixel tussen waarbij het fout gaat.

IMG_6018.PNG

Fix:

/* XS (for phones - screens < than 768px wide) */
  @media (width < 768px) {
    /* CSS rules for phones go here */
  }

  /* SM (for tablets - screens ≥ than 768px wide) */
  @media (width >= 768px) {
    /* CSS rules for tablets go here */
  }

  /* MD (for small laptops - screens ≥ than 992px wide) */
  @media (width >= 992px) {
    /* CSS rules for small laptops go here */
  }

  /* LG (for laptops and desktops - screens ≥ than 1200px wide) */
  @media (width >= 1200px) {
    /* CSS rules for laptops and desktops go here */
  }

Commiten van nieuwe @media queries

Screenshot 2023-05-19 at 14.53.18.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant