CSS Sassafrassy
CSS Sassafrassy
Out of context: Reply #1
- Started
- Last post
- 3 Responses
- Nicelydrawn0
Try this:
<html>
<head>
<style type="text/css">
.thing {
display:block;
width:150px;
height:60px;
background-color:#eee;
border:1px solid #000;
display: table;
}
div.thing span {
display: table-cell;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="thing">
<span>ME</span>
</div>
<div class="thing">
<span>You guys are super awesome</span>
</div>
</body>
</html>- Forgot to remove the 'display:block' from '.thing' Want to stick with 'display: table'Nicelydrawn