I'm facing an issue with a div that has a width of 46%. When the text in the h1 tag is too long, it gets broken into multiple lines and the left padding is not consistent. Is there a way to maintain the same left padding for the second line?
To help illustrate the problem, I have included an image and the relevant CSS code.
Below is the HTML code:
<div class="header-tite">
<h1>An Epidemic 37 Years in the Making</h1>
</div>
And here is the corresponding CSS:
.header-tite{
width:45%;
float:left;
position:absolute;
left:95px;
bottom:42px;
z-index:1;
}
.header-tite h1{
font-family: 'gotham_bookregular';
font-size:55px;
font-weight:normal;
color:#191919;
line-height:68px;
padding:0px 10px 0px 10px;
background:#FFFFFF;
display:inline;
opacity:0.85;
}
The current output displays the inconsistency in padding before the second line of text.
I am looking for a solution to maintain the same gap before the letter "Y."