Having difficulty adjusting text size within div tags, specifically when trying to set it in pixels. For example, setting font-size to 20px while maintaining a div size of 250 by 50 pixels results in stretched out text. Here's the code snippet:
.NavBarHome {
font-family:"Helvetica Neue";
font-size:20px;
text-align:center;
width:250px;
height:50px;
text-height:20px;
display:inline-block;
background-color:#161616;
color:#fff;
line-height:50px;
}
Seeking advice on how to achieve the desired text size. This script has worked effectively in the past but seems to be causing issues this time around. Any suggestions?