I think this is a good topic, but agree it's off the center.

 

I am intimately family with the stretchable button approach. 

 

Almost all web designers who make button understand its limits and where it
works well. It has its place and We use it to the extreme at

 

http://identify.whatbird.com/obj/388/_/Lesser_Sand-Plover.aspx

 

Check the sexy tabs and how they have curved edges. That was not easy.

 

Regarding your point about the sliding door and using the same elements
instead of making new graphics, that's not really true if you use rounded
corners. Your corners will look worse when they are stretched vertically. In
the final analysis if you want pretty it's going to have to be separate
graphics.

 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Sauyet
Sent: Wednesday, July 25, 2007 7:48 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: 3 state buttons - is there a best way

 

 

Mitchell Waite wrote:

> "Limits the artwork" in the sense the middle portion of all you images 

> must be a stretched background slice, so you can't reproduce all the 

> subtle affects of switching images. You have to produce the end caps 

> from a sliced piece of artwork so this sort of tosses out a lot of high 

> quality graphics.

 

Yes, that's one of the limitations of this technique.  But it's there to 

facilitate something difficult with other techniques: with the sliding 

door technique, you can use the same artwork and still allow varying 

sized items.  Instead of creating a button for the text "foo" and a 

different one for the text "foobarbaz", a single graphic will do both. 

This only works if you can use an image whose horizontal center will 

stretch well, but many button and tab images are like that anyway, as 

you want consistency among the various sized buttons.

 

If it stretches in the vertical direction too (think bottoms of tab 

images) then you automatically handle text resizing too.  It's a pretty 

nice technique.

 

But this is pretty far from JQuery at this point, so I'll shut up.

 

   -- Scott

 

Reply via email to