Skip to content

Commit

Permalink
fixed centering again
Browse files Browse the repository at this point in the history
  • Loading branch information
RasperRevision committed Jul 16, 2024
1 parent d191dff commit 7b79868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions quiz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ <h1>Quiz</h1>
function adjustMargin() {
var margin = (window.innerHeight - container.getBoundingClientRect()['height']) / 2 - 120;
container.style.marginTop = `${margin}px`;
container.style.maxHeight = `${window.innerHeight - 250}px`
}

window.addEventListener('resize', () => { adjustMargin(); });
Expand Down
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ body::-webkit-scrollbar {

.quiz_content {
font-size: 1rem;
overflow-y: auto;
}

.carousel-cell {
Expand Down

0 comments on commit 7b79868

Please sign in to comment.