Hey there, I'm looking for some assistance to achieve a similar effect to the one on this page: https://jsfiddle.net/WsXP6/126/
However, my goal is to have the top section be a solid color instead of an image. I've been struggling to make it work... The content part doesn't seem to overlap the top section for some reason. Just a heads up, I am relatively new to working with HTML & CSS.
Here is my CSS & HTML:
html {
height: 100%;
width: 100%;
}
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
#logo {
color: #ffffff;
font-weight: 700;
font-size: 1rem;
float: left;
margin-left: 40px;
margin-top: 35px;
}
nav {
float: right;
margin-top: 40px;
margin-right: 40px;
}
a {
color: #ffffff;
font-weight: 400;
font-size: 80%;
text-decoration: none;
margin: 0 auto;
margin-left: 3rem;
}
.header {
background: #0F1014;
background-size: cover;
height: 100vh;
width: 100%;
margin: 0;
padding: 0;
}
.content_top {
margin-top: 260px;
padding: 4rem 0 8rem 0; }
.sub_title, .under_title {
color: #ffffff;
text-align: center;
}
.sub_title {
font-weight: 400;
font-size: 0.85rem;
margin: 0 0 5px 0;
}
.logo_middle {
display: block;
margin: auto;
}
.under_title {
font-weight: 400;
font-size: 0.85rem;
margin: 5px 0 5px 0;
}
.content {
background-color: #ffffff;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
<html>
<head>
<title>Jakob Hoeg</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
</head>
<body>
<div class="header">
<header>
<a href="index.html"><img id="logo" src="images/logo_top.png" draggable="false"/>
<nav>
<a href="#">HOME</a>
<a href="#">PORTFOLIO</a>
<a href="#">CONTACT</a>
</nav>
<div class="content_top">
<h4 class="sub_title">HELLO, MY NAME IS</h4>
<img class="logo_middle" src="images/logo_big.png" draggable="false"/>
<h4 class="under_title">MULTIMEDIA DESIGN STUDENT</h4>
</div>
</header>
</div>
<div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
</body>
</html>