We would like to know how to vertically center an HR tag.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.table {<!--from ww w .ja va 2 s . co m-->
display: table;
width: 100%;
height: 100%;
position: absolute;
}
.table-cell {
display: table-cell;
text-align: center;
vertical-align: middle;
width: auto;
height: auto;
z-index: 100;
}
</style>
</head>
<body>
<div class="table">
<div class="table-cell">
<hr />
<h3>Some text</h3>
<hr />
</div>
</div>
</body>
</html>
The code above is rendered as follows: