Say I have the following CSS and HTML code:
I have devised a way which is a lot simpler than what's been mentioned.
Set the height of the header div. Then inside that, style your H1
tag as follows:
float: left;
padding: 90px 10px 11px
I'm working on a site for a client, and the design requires the text to be at the bottom of a certain div. I've achieved the result using these two lines, and it works fine. Also, if the text does expand, the padding will still remain the same.