Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML element with multiple classes

  1. Apr 2, 2014 #1
    Suppose I write the following in my stylesheet

    Code (Text):

       .class1
        {
            position: relative;
        }
        .class2
        {
            position: absolute;
            bottom: 0px;
        }
     
    and then the following in my body

    Code (Text):

        <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.
     
  2. jcsd
  3. Apr 3, 2014 #2
  4. Apr 4, 2014 #3
    Thanks!
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook