if i'm using a background image in a div, how can i ensure the entire image displays, even if the container div isn't necessarily tall enough? i'm using this CSS to fake a drop cap (specifically, a Q&A-type setting). the images are approx. 36px square, so the padding leaves a nice margin for them to sit in.
the problem is, if the text in my divs isn't long enough, then it doesn't stretch vertically and i lose the bottoms of my drop-caps. i've tried overflow:visible with no luck, and min-height doesn't seem to be supported by many browsers...
any suggestions?
Code:
div.q, div.a {
background-image: url(/images/q.gif);
background-repeat: no-repeat;
background-position: left top;
padding-left: 40px;}
div.a {
background-image: url(/images/a.gif);}
the problem is, if the text in my divs isn't long enough, then it doesn't stretch vertically and i lose the bottoms of my drop-caps. i've tried overflow:visible with no luck, and min-height doesn't seem to be supported by many browsers...
any suggestions?