CSS
CSS
Code
/* Global Styles */
body {
/* Header Styles */
header {
/* Navigation Bar */
nav {
nav a {
color: #fff; /* White link color */
nav a:hover {
main {
/* Footer Styles */
footer {
}
Explanation
○ font-family: Sets the font for the entire document to Arial, with sans-serif as a
fallback.
○ background-color: Defines the light gray background color.
○ margin and padding: Removes default spacing applied by the browser.
○ line-height: Improves readability by increasing the space between lines of text.
2. Header Styles (header)
○ nav: Styles the navigation bar with a dark background and white text.
○ nav a: Styles individual links to be white, removes underlines, and spaces them evenly.
○ nav a:hover: Changes the link color when hovered, adding an interactive effect.
4. Main Content Area (main)
○ background: Sets the content area to have a white background for better readability.
○ padding and margin: Adds spacing inside and outside the content block.
○ border-radius: Rounds the corners slightly for a modern look.
○ box-shadow: Adds a subtle shadow for a "card" effect.
5. Footer Styles (footer)
○ background and color: Matches the footer's design with the header for consistency.
○ text-align: Centers the text.
○ font-size: Reduces the font size for footer text.
○ margin-top: Separates the footer from the content above.
This CSS can be applied to create a simple yet visually appealing webpage layout. Let me know if you'd
like an HTML example to pair with it or further details!