Own project · Stop 4 of 10
Boxing club website
My first own website: the home page of a made-up boxing club with a header, a logo and navigation.

Goal
Build a page that looks like a real club, not like a textbook.
Implementation
- A large header picture with the headline and a motto on top.
- Logo and navigation at the top, below it a block of text on a color gradient.
- All written by hand in HTML and CSS, without a site builder.
- In the picture here, the original photo and logo are replaced by areas of color.
Code
Header picture, navigation and headline on top of each other
.header-image {
height: 75vh;
width: 100%;
object-fit: cover;
}
.container {
position: absolute;
right: 32px;
left: 32px;
top: 10px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.menu-link {
color:white;
text-decoration: none;
}
.menu-link:hover {
text-decoration: underline;
}
.logo {
width: 110px;
}
.headline {
position: absolute;
top: 180px;
width: 100%;
text-align: center;
color: white;
font-size: 30px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
text-shadow: 3px 2px rgba(0, 0, 0, 0.807);
}With absolute positioning the logo, menu and text sit on top of the picture.
What I learned
How positioning, layers and shadows work together, and that paths to pictures should be relative.