html - Overlapping Text in CSS - How do I change it? -
i'm trying change overlapping element (text) in css file. 1 line of texts (in regular browser) appears 2 lines of text in mobile, overlapped together.
this change mobile version of site (the @media section landscape tablets)
currently, header (h2) text overlapping on ipad/tablet.
code h2 @media section:
.da-slide h2{ font-size: 36px; width: 80%; top: 40px; padding: 18px 20px 18px 20px; (the .da-slide h2 component holds text in html)
i tried line-height property didn't work?
any ideas...
are sure line-height css property has been apply class?
css
.da-slide h2{ font-size: 36px; line-height: 36px; width: 80%; top: 40px; padding: 18px 20px 18px 20px; } otherwise, have added meta tag in header?
<meta name="viewport" content="width=device-width, initial-scale=1"> also, responsive website, sure text isn't ajusted:
css
body { -webkit-text-size-adjust: none; }
Comments
Post a Comment