I am currently working on creating a mobile-friendly version of a website. However, I am facing an issue where the background image set for an H1 title is only taking into account the "text height" and not the actual picture height specified in the CSS.
Any suggestions or solutions to tackle this problem would be greatly appreciated!
Thank you in advance for any help!
EDIT: I have tried various CSS properties such as float:left, display:block, overflow:hidden, and display:inline-block but none have been successful so far...
EDIT 2: Here is the code snippet that is causing the issue:
<h1>My title my title my title my title my title</h1>
h1{width:400px;height:300px;background:url(h1pic.jpg) top left no-repeat;padding:15px;font-size:12px;display:block;}