0

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:

enter image description here

This is how I want it to look:

enter image description here

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>
6
  • 1
    You have invalid markup. CSS doesn't take quotes. Commented Feb 2, 2014 at 13:56
  • @oGeez : crap man...i was about to add it!! :) Commented Feb 2, 2014 at 13:59
  • stackoverflow.com/questions/2939914/… Commented Feb 2, 2014 at 14:00
  • you can also make subheader-left and subheader-right absolute positioned with bottom: 0 and header_container relative. Commented Feb 2, 2014 at 14:02
  • My mistake, will fix the css syntax. Thanks everyone Commented Feb 2, 2014 at 14:05

2 Answers 2

3

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 */
Sign up to request clarification or add additional context in comments.

1 Comment

@user1283674 : glad to help fella...respond back if you still get a prob! :)
1

try,

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.