With my following code how to create simple filter using only CSS?
li items have opacity 0.1, how to make opacity 1 if radio buttons are checked? By default All Type radio button is checked, so all li items must have opacity 1. When other buttons are checked, how to change opacity accordingly?
CSS
.ff_items li
{
opacity: 0.1;
}
HTML
<div class="filter">
<input id="select_type_all" name="radio_set_1" type="radio" class="ff_selector_type_all" checked="checked" />
<label for="select_type_all" class="ff_label_type_all">All</label>
<input id="select_type_1" name="radio_set_1" type="radio" class="ff_selector_type_1" />
<label for="select_type_1" class="ff_label_type_1">Web Design</label>
<input id="select_type_2" name="radio_set_1" type="radio" class="ff_selector_type_2" />
<label for="select_type_2" class="ff_label_type_2">Illustration</label>
<input id="select_type_3" name="radio_set_1" type="radio" class="ff_selector_type_3" />
<label for="select_type_3" class="ff_label_type_3">Icon Design</label>
</div>
<ul class="ff_items">
<li class="ff_item_type_1">
<div class="thumb">
<div class="frame"><img src="work/thumb1.png" /></div>
<div style="clear:both;"></div>
</div>
</li>
<li class="ff_item_type_2">
<div class="thumb">
<div class="frame"><img src="work/thumb2.png" /></div>
<div style="clear:both;"></div>
</div>
</li>
<li class="ff_item_type_3">
<div class="thumb">
<div class="frame"><img src="work/thumb3.png" /></div>
<div style="clear:both;"></div>
</div>
</li>
</ul>