Encountering an issue where I need to insert a single character within a div with a button background. It sounds simple enough, but the text alignment varies between Firefox and Safari/Chrome. To demonstrate this problem, I have set up a basic page with just one div and one character.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.testDiv{
height: 100px;
width: 100px;
background: blue;
color: #fff;
font-size: 50px;
font-family: helvetica;
}
</style>
</head>
<body>
<div class="testDiv">
1
</div>
</body>
</html>