-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,68 @@ | ||
/* Existing CSS (if any) */ | ||
|
||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
font-size: 16px; | ||
line-height: 1.5; | ||
color: #333; | ||
} | ||
|
||
nav ul { | ||
nav { | ||
width: 20%; | ||
position: fixed; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
width: 220px; /* Adjust width if needed */ | ||
height: 100%; | ||
background-color: red; /* Changing color to red */ | ||
list-style-type: none; | ||
background-color: red; | ||
overflow: auto; | ||
padding: 1rem; | ||
} | ||
|
||
nav ul { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
nav ul li { | ||
padding: 10px; | ||
text-align: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
nav ul li a { | ||
color: white; /* Making the text color white for visibility against red */ | ||
color: white; | ||
text-decoration: none; | ||
font-weight: bold; | ||
display: block; | ||
transition: background 0.3s; | ||
padding: 0.5rem; | ||
border-radius: 5px; | ||
} | ||
|
||
nav ul li a:hover { | ||
background-color: darkred; /* Darker shade on hover for better UI effect */ | ||
background-color: #ff3333; | ||
} | ||
|
||
section { | ||
width: 80%; | ||
margin-left: 20%; | ||
padding: 20px; | ||
} | ||
|
||
/* Additional CSS for the image */ | ||
header { | ||
position: relative; | ||
header h1 { | ||
font-size: 2.5rem; | ||
margin: 0; | ||
} | ||
|
||
header img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
header h1 { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
color: white; | ||
h2 { | ||
font-size: 2rem; | ||
border-bottom: 2px solid #666; | ||
padding-bottom: 10px; | ||
margin-top: 2rem; | ||
} | ||
|
||
p { | ||
margin-bottom: 1rem; | ||
} |