I need help with styling a page that will only be viewed on mobile Safari. The HTML markup is as follows:
<blockquote>
<p><img src="..."/> A paragraph...</p>
<p>...</p>
...
</blockquote>
Here is the CSS used:
blockquote {
border-left: 1px solid #888;
}
blockquote img {
float: left;
margin: 0 20px 20px 0;
}
With long paragraph text, the desired effect is achieved:
| IMAGE A paragraph, blah blah blah...
| IMAGE blah blah blah...
| IMAGE
| More paragraph, blah blah blah...
| blah blah blah, blah blah blah...
You can view an example here.
The whitespace between the image and text is important, but when the paragraph text is short, there is an unwanted margin at the bottom which stands out due to the left border line:
| IMAGE A paragraph, blah blah blah...
| IMAGE blah blah blah...
| IMAGE
|
You can see this issue in action here.
If you have any suggestions on how to solve this problem without requiring all quotes to be long enough, please share. Even a JavaScript solution would be acceptable. Thank you!