How to vertical align in a div?

I don't know how to align the text that is currently in the top left of the header so that it appears in the bottom. Any advise would be greatly appreciated:

This is how is appears at the moment:

This is how I want it to look:

This is code I have so far:

        <div id="header_container">
           <div id="subheader-left" style="float:left; width:50%; text-align:left">chilun liu</div>
              <div id="subheader-right" style="float:right; width:50%; text-align:right">
    <!-- the Social Network's images  -->  
              </div>         
           </div>
        </div>

Answers


try,

#subheader-left { position: absolute; bottom: 0; left: 0; }

Add this to your existing css

#subheader-left,#subheader-right{
 display:table-cell;
 vertical-align:bottom
}

Side Note : This solution is supported IE8 and above...

Additionally

style="border:none; width="40" height="40"

should be

style="border:none; width:40px; height:40px"
                      /*  ^^ no "=" sign or quotes,instead, 
                         semi colon and values only */

Need Your Help

Promise.all().then() - then() executes before all() completed

node.js git gulp es6-promise

In a gulp task I have the following code that creates an array of gitAction promises that get executed within a Promise.all() statement. Afterwards, I'm calling a further statement in a then(). But...