[UPHPU] Background image question

Velda Christensen velda at novapages.com
Fri Jul 20 11:51:25 MDT 2007


Jonathan Duncan wrote:
>
> On 19 Jul 2007, at 09:46, Scott Hill wrote:
>
>> I fixed it by resizing the image to 1 X 25.  It looks much better 
>> now.  So
>> now I have two different sizes for small and large buttons.  I 
>> thought it
>> was possible to stretch an image to fit but this is just as good.
>>
>
> Make the background image larger than you need.   Like 50x50 and then 
> as the button gets bigger it will just use more of the background.  
> Unless the background has certain aspects that require it to be a 
> certain size.
>
> Jonathan

Yeah, exactly -- and even if it has certain aspects requiring it to be a 
certain size (like an arrow or glowing center or something), you can 
probably just put those aspects in the middle, and position the 
background at 50%.  Speaking of which, if you didn't know, you can 
actually create different backgrounds in a single image for a pure CSS 
rollover effect.  Simply change the position of the background on hover 
/ on active .



More information about the UPHPU mailing list