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

External CSS Affecting Lesson's Grid Styling #45

Open
wondersavant opened this issue Oct 20, 2023 · 0 comments
Open

External CSS Affecting Lesson's Grid Styling #45

wondersavant opened this issue Oct 20, 2023 · 0 comments

Comments

@wondersavant
Copy link

wondersavant commented Oct 20, 2023

https://btholt.github.io/complete-intro-to-web-dev-v3/lessons/css/grid

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 10px;
  }

  .grid-picture {
    margin: 0;
    padding: 0;
  }

The row and column gap values are the same but visually, I've noticed a difference. Upon inspecting, I found an external CSS class affecting it

.lesson-content img {
  margin: 5px auto;
  display: block;
}
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