My p
tag in the section properties of div class="sf sf_2
won't align to 0 px
from the bottom of the div. It seems to move 0px from the top, right, and left but not bottom. I've tried changing its position property and where it's nested, but haven't been able to solve the issue yet. Any suggestions or advice would be greatly appreciated.
/* color:#00a786 lighter green */
/* color:#005242 dark green for buttons */
/* color:003027 dark green background */
...
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
...
.sf {
position: relative;
top:120px;
height:270px;
width: 330px ;
}
.sf_2 {
position: relative;
left:80px;
top:120px;
height:270px;
width: 330px ;
background-image:url(../img/sf-2.jpeg)
}
...
<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
...
<section class="main-section">
...
<form class="Search" action="index.html" method="post">
...
</form>
</div>
</section>
...
</body>