[UPHPU] Background image question
Orson Jones
orson.uphpu at bookstore.usu.edu
Thu Jul 19 10:33:53 MDT 2007
> I have an image that I am using as the background for submit buttons.
> However, if I increase the size of the font it looks funny. Isn't there a
> way to make the background image stretch or fill the entire button?
Unfortunantly no. Not even if you are using svg. (which would be amazing)
<rant>What's the point of having scalable vector graphics if they won't scale</rant>
Here is a technique I like, but is a bit heavy. However it works beautifully.
It is a bit large, so I'll point to a site rather including here.
http://tetratech.info/oddcss/bgwrap/
If you increase the font, it adjusts to fit.
If you want to use a border like this on a regular div, you don't need the wrap0,wrap1 things. They shrink the div so it doesn't go the usual full width.
Anyway, I don't know if this is what you want to do, but It is kind of interesting.
Orson
More information about the UPHPU
mailing list