Could someone please explain to me why changing the position
to relative
causes the "facebook and Facebook helps you connect and share with the people in your life" text to display at the top of the page? I've only been studying CSS for three days. Thanks in advance!
Here is the HTML
code snippet:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="henry.css">
</head>
<body>
<div class="h1">
<h1 class="h">facebook</h1>
<p class="pr">Facebook helps you connect and share with the people in your life.</p>
</div>
</body>
</html>
CSS
code snippet:
.h1{
position: absolute;
left: 10%;
top: 40%;
width: 550px;
}