I have the following scenario: I want a background with no padding behind a heading but certain letters - as g,p - are outside the box.
Seems pretty simple but can't find a way to include all letters seamlessly:
- No letter portion outside background box
- No extra space/color on top of l's or capitals for example.
Can you please help?
h2{
background:#b2bec3;
color:#444;
display:block;
font-family:'Roboto';
font-weight:700;
line-height:1;
font-size:35px;
padding:0;
}
<h2>This is a heading or a paragraph text</h2>