Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoyRoy05 committed Jan 22, 2025
2 parents 2c9124c + aa59f20 commit 11f5a18
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,21 +301,33 @@ section h2 {
margin: 1rem auto;
width: 80%;
display: grid;
grid-template-columns: repeat(3, 33%);
grid-auto-rows: 1fr;
grid-template-columns: repeat(3, 1fr); /* Flexible columns */
gap: 1.5rem; /* Consistent spacing between items */
justify-content: space-between;
align-items: center;
vertical-align: middle;
align-items: start; /* Align text to the top */
color: black;
}

.qna {
margin: 1rem;
margin: 0; /* Remove margin to prevent spacing issues in the grid */
padding: 1rem;
border: 1px solid #ccc; /* Optional: Add a border for better separation */
border-radius: 8px; /* Optional: Rounded corners */
background-color: #fff; /* Optional: Background color */
box-sizing: border-box; /* Ensure proper sizing */
min-height: 210px;
}

.qna span {
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 0.5rem; /* Add space below the question */
}

.qna p {
font-size: 1.2rem;
line-height: 1.5; /* Improve readability */
margin: 0;
}

/* Bonus */
Expand Down

0 comments on commit 11f5a18

Please sign in to comment.