Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
es, to place the dark mode toggle on the upper right side, you need to make changes to the CSS code. Update your styles.css with the following changes:

Replace the #theme-toggle with header to position the dark mode toggle within the header.
Add flexbox styles to the header selector to align its contents.
Here's the updated styles.css code:
  • Loading branch information
lightningRalf authored Mar 15, 2023
1 parent 652f8f1 commit df92fb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ body.dark-mode {
background-color: #333;
}

#theme-toggle {
header {
position: fixed;
top: 1rem;
right: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 1rem;
}

#theme-switch {
Expand Down

0 comments on commit df92fb5

Please sign in to comment.