Why can't I get the vertical alignment to work in this div tag?:
<div id="mid"><div class="pagetitle">Page Title</div>
</div>
I am using this as the css:
.pagetitle {
text-align: right;
vertical-align: bottom;
}
#mid{
padding: 0px 0px 0px 0px;
background-color: #CEC09A;
height: 66px;
background-image: url(../images/main2.jpg);
background-repeat: no-repeat;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #000000;
)
Thanks!
MargotHere's one way:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
h1 {
text-align: right;
padding: 50px 0 0 0;
background:#CEC09A url(../images/main2.jpg) no-repeat;
font:16px Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000;
}
-->
</style>
</head>
<body>
<h1>Page Title</h1>
</body>
</html>
<div id="mid"><div class="pagetitle">Page Title</div>
</div>
I am using this as the css:
.pagetitle {
text-align: right;
vertical-align: bottom;
}
#mid{
padding: 0px 0px 0px 0px;
background-color: #CEC09A;
height: 66px;
background-image: url(../images/main2.jpg);
background-repeat: no-repeat;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #000000;
)
Thanks!
MargotHere's one way:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
h1 {
text-align: right;
padding: 50px 0 0 0;
background:#CEC09A url(../images/main2.jpg) no-repeat;
font:16px Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000;
}
-->
</style>
</head>
<body>
<h1>Page Title</h1>
</body>
</html>