HTML element with multiple classes

  • Thread starter Jamin2112
  • Start date
  • #1
986
9
Suppose I write the following in my stylesheet

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.
 

Answers and Replies

  • #3
986
9
Thanks!
 

Related Threads on HTML element with multiple classes

  • Last Post
Replies
18
Views
973
Replies
3
Views
770
  • Last Post
Replies
19
Views
958
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
11
Views
2K
  • Last Post
Replies
3
Views
59K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
Top