- #1
Jamin2112
- 986
- 12
Suppose I write the following in my stylesheet
and then the following in my body
Will that div take a relative position or will it be positioned absolutely at the bottom of the page? Yes, I know I could test this myself, but I'd like to first understand the logic of where it should be.
Code:
.class1
{
position: relative;
}
.class2
{
position: absolute;
bottom: 0px;
}
and then the following in my body
Code:
<div class="class1 class2">
</div>
Will that div take a relative position or will it be positioned absolutely at the bottom of the page? Yes, I know I could test this myself, but I'd like to first understand the logic of where it should be.