Home › Forums › CSS › Thumbnail images with expanded view › Reply To: Thumbnail images with expanded view
April 7, 2016 at 7:20 am
#240306
bearhead
Participant
It would be pretty easy using the :focus pseudo class and the sibling selector:
http://codepen.io/kvana/pen/GZyNOR
The major difference is that the thumbnails will be above the preview… you could probably get them below with some messy positioning, but I would say it’s probably not worth it…
You could also look into the “checkbox hack” although in this case I guess it would be more of a radio button hack.
Also, ids that start with a number are invalid, so you should probably change them.