I feel crazy. Here is a JsFiddle with a working solution to how to vertically center some text. It's from this SO question.
But even when I copy and paste the HTML and CSS into my local files, I cannot replicate. Here is my code:
This is my HTML and CSS:
<html>
<head>
<link type='text/css' rel='stylesheet' href='main.css'>
</head>
<body>
<div>
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
</div>
</body>
</html>
and
div {
border: 1px solid black;
width: 250px;
height: 100px;
line-height: 100px;
text-align: center;
}
span {
display: inline-block;
vertical-align: middle;
line-height: normal;
}
This doesn't work. . What in the world is going on?