An issue has come up with my web content that I created using an HTML editor. When loading it into a UIWebView
, everything is functioning properly except for one small detail - the line-height CSS attribute is being ignored by the UIWebView
. Despite the font sizes being recognized correctly, the line-height isn't having any effect.
The CSS for my body is as follows:
body {
color: #333;
text-align: center;
padding: 0;
font: 0.75em/0.8em "Lucida Grande", Lucida, Verdana, sans-serif;
margin: 0 0 0;
}
I even attempted to add a specific line-height: 80%;
line, but unfortunately, it didn't make any difference at all. The UIWebView
renders the text in the same way whether the line-height is set to 0.8em or 1.5em!
When I load the HTML in Safari on my Mac, it displays correctly, leading me to believe that the HTML itself is fine and that the issue lies in the inheritance of other CSS statements. At this point, I'm unsure of what could be causing the problem.
Any thoughts or suggestions would be greatly appreciated.
Thank you, Craig