ptrcao
12-12-2010, 09:33 AM
I'm trying to attempt a gradient colour as the tab fill for the side menus. As you can see the tab heights vary depending on text overflow - which is fine - that's how I want it in this case. However, it appears as if the gradient background is higher than can fit in the one-line tabs. The effect is that the entire background is not being used for the smaller tabs.
I think my goal here then is to have the image scale to fit its li container.
Question has already been asked and unsatisfactorily answered at http://www.velocityreviews.com/forums/t160219-css-background-image-possible-to-scale-image.html
"Is it possible to specify a background-image for a CSS class and have that
image scale to fit whatever space is taken by the content of the object
using that class?"
I think my goal here then is to have the image scale to fit its li container.
Question has already been asked and unsatisfactorily answered at http://www.velocityreviews.com/forums/t160219-css-background-image-possible-to-scale-image.html
"Is it possible to specify a background-image for a CSS class and have that
image scale to fit whatever space is taken by the content of the object
using that class?"