Skip to content

Commit

Permalink
better big screen responsivity
Browse files Browse the repository at this point in the history
  • Loading branch information
muznyo committed Dec 15, 2023
1 parent 5481d71 commit 56dbefc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2 class="mb-0" id="quiz">Quiz</h2>
</div>
</div>
</div>
<div id="questionsContainer"></div>
<div id="questionsContainer" class="questions-container"></div>
<div id="correctCount"></div>
</nav>

Expand Down
35 changes: 35 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
.questions-container {
display: flex;
flex-direction: column;
padding: 0.5vw 0.5vh;
/* Default padding for small devices */
}

@media (min-width: 576px) {
.questions-container {
padding: 5vw 10vh;
/* Increased padding for larger devices */
}
}

@media (min-width: 768px) {
.questions-container {
padding: 5vw 15vh;
/* Further increased padding for even larger devices */
}
}

@media (min-width: 992px) {
.questions-container {
padding: 5vw 20vh;
/* Even more padding for large devices */
}
}

@media (min-width: 1200px) {
.questions-container {
padding: 5vw 25vh;
/* Maximum padding for extra large devices */
}
}

html {
scroll-behavior: smooth;
}
Expand Down

0 comments on commit 56dbefc

Please sign in to comment.