Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Div to Fill Extra Space via jQuery?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #156668
    emaildano
    Participant

    Any suggestion on a script that would fill the extra space of a div?

    My ultimate goal would be to have this div (the one that should fill the extra space) to push down the div below it so it’s aligned to the bottom.

    Below is a visual reference of what I’m trying to do.

    https://www.dropbox.com/s/33n7e1sndskvjza/Screen%20Shot%202013-11-20%20at%209.54.21%20AM.png

    I’m using the following Bootstrap panels markup.

    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title">Panel title</h3>
      </div>
      <div class="panel-body">
        Panel content
      </div>
      <div class="panel-footer">
          Panel footer
      </div>
    </div>
    
    #156674
    TheDoc
    Member

    No jQuery needed!

    .panel {
        position: default;
    }
    
    .panel-footer {
        position: absolute;
        bottom: 0;
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.