Currently, I have an interesting design challenge. The image is floated to the left of a banner area that needs to be shorter than the image height in order to accommodate growing text without clipping the image.
My first attempt was to use overflow: hidden
on the .banner
class, but instead of clipping, it cleared the image altogether.
I am aware of why this happened, but I'm struggling to find a solution that achieves the desired effect. Please see the ideal outcome below:
I've experimented with placing the image within a div and applying overflow: hidden
to that element, but unfortunately, it didn't produce the desired result.
Perhaps the answer is obvious, right in front of me, but I just can't seem to see it.
To help visualize the issue, I have shared my code on a JSFiddle, complete with a smaller image for better clarity in the result window.
Thank you for any assistance in advance.