ellandrd
asked on
align h1 to bottom of div
i have a div with class called title. it contains a h1 tag. i want this tag to align to the bottom of the div please.
<div id="main">
<div class="title">
<h1>Welcome to my website.</h1>
</div>
<img src="" alt=""/>
<p>Some text here</p>
<p class="footer"><a href="/sitemap/" title="Sitemap">Sitemap</a ></p>
</div>
my code:
#main div.title
{
height:243px;
padding:0px;
margin:0px;
width:500px;
background:#FFFFFF;
}
#main div.title h1
{
position:absolute;
bottom:0px;
left:0px;
padding:0px;
margin:0px;
font-size:1.8em;
font-weight:normal;
color:#888888;
font-family: "Trebuchet MS", helvetica, arial, sans-serif;
}
<div id="main">
<div class="title">
<h1>Welcome to my website.</h1>
</div>
<img src="" alt=""/>
<p>Some text here</p>
<p class="footer"><a href="/sitemap/" title="Sitemap">Sitemap</a
</div>
my code:
#main div.title
{
height:243px;
padding:0px;
margin:0px;
width:500px;
background:#FFFFFF;
}
#main div.title h1
{
position:absolute;
bottom:0px;
left:0px;
padding:0px;
margin:0px;
font-size:1.8em;
font-weight:normal;
color:#888888;
font-family: "Trebuchet MS", helvetica, arial, sans-serif;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Mark!
ASKER