Morning Walter...
That was the approach I took last night... it works but its just not
as attractive as I'd like... still seems like their should be a more
stylish way.
I may just opt for something like the color selector used on a number of
clothing sites... like this one:
With as few choices as you have, I would be tempted to add them as a field of
radio buttons, and use CSS to replace the buttons with color swatches directly.
No need for any JavaScript at all.
label class=swatchimg src=red.png alt=red /input type=radio
name=color value=red //label
...
Really? Can you show an example? I don't think the label.swatch itself gets a
:checked pseudo-class, it's the input inside it that gets checked. While you
can find the :checked checkbox, you can't style upward like that to access the
parent label (really wish you could).
Walter
On Mar 21,
Sorry then I misunderstood where the CSS was being applied - yes the radio
input does get the pseudo class but not the parent elements
Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com
On Thu, Mar 21, 2013 at 11:40 AM, Walter Lee Davis wa...@wdstudio.comwrote:
Really? Can you show an
Here's what I was thinking of:
http://scripty.walterdavisstudio.com/color-picker.html
Walter
On Mar 21, 2013, at 2:40 PM, Walter Lee Davis wrote:
Really? Can you show an example? I don't think the label.swatch itself gets a
:checked pseudo-class, it's the input inside it that gets checked.