This is because you used a h3
to wrap “Take a Tour!”, which, by default has a margin-top
(and also a margin-bottom
). Simply declare them to 0
and your sentence will go up to the top!
you can do it in your CSS part:
h3 {
margin-top: 0px;
margin-bottom: 0px;
}
or inline:
<h3 style="margin-top:0px;margin-bottom:0px;">Take a Tour!</h3>
Here’s the update working Codepen.
Hope this helps!