html horizontal text align bottom code example
Example 1: text vertical align css
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style type="text/css">
div {
display: table-cell;
width: 250px;
height: 200px;
vertical-align: middle;
}
</style>
</head>
<body>
<div>Vertically aligned text</div>
</body>
</html>
Example 2: put header at bottom of div
#header {
position: relative;
min-height: 150px;
}
#header-content {
position: absolute;
bottom: 0;
left: 0;
}
#header, #header * {
background: rgba(40, 40, 100, 0.25);
}