HTML and button problem
Posted: Fri Feb 24, 2017 8:23 am
Hello,
Why is the text no centered into the button?
Of course if you put height à 85 the text is in the center. But I would like a low profile button with the highest text as possible.
What do I wrong?
Thanks
Why is the text no centered into the button?
Code: Select all
<button onClick=location.href='./?LED=OFF\'
style='margin:auto;
background-color: #84B1FF;
color: yellow;
padding: 0px 0px;
border: 0px solid #3F7CFF;
width:85px;
height:45px;
text-align: center;
'><h1>ok
Of course if you put height à 85 the text is in the center. But I would like a low profile button with the highest text as possible.
What do I wrong?
Thanks