Skip to content

Commit

Permalink
center justify sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Elucidation committed Feb 27, 2024
1 parent 56048f9 commit 9cd1eaf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@ body {
.container {
display: flex; /* Enable flexbox layout */
flex-wrap: wrap; /* Allow items to wrap into multiple rows*/
justify-content: space-around; /* Distribute space around sections */
justify-content: center;
}

.section {
width: fit-content;
margin-bottom: 20px;

padding: 15px;
}

h3 {
/* Style titles */
text-align: center;
}

canvas {
max-width: 256px;
max-width: 256px;
}

#fen {
Expand All @@ -34,7 +32,7 @@ canvas {
}

/* Media query for smaller screens */
@media (max-width: 768px) {
@media (max-width: 768px) {
#fen {
font-size: xx-small; /* Smaller font size on smaller screens */
}
Expand Down

0 comments on commit 9cd1eaf

Please sign in to comment.