It seems like the code is working fine in Opera and Chrome, but in Firefox and IE11, the text is getting hidden, which is not very enjoyable. I don't have a Mac, so I can't test it on Safari.
You can see the issue in action on this Plunker.
I've attempted to fix the issue by adding line-height
and overflow:visible
, but so far they haven't had much impact.
CSS:
#userResponse {
font-size: 2em;
padding: 1em 0.25em;
text-align: center;
}
HTML:
<!DOCTYPE html>
<html>
<head>
<link data-require="<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="96f4f9f9e2e5e2e4f7e6bbf5e5e5d6a5b8a5b8a7">[email protected]</a>" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body>
<input class="form-control" id="userResponse" type="text">
</body>
</html>