Results 1 to 1 of 1
Threaded View
-
23rd Sep 2017, 05:56 PM #1
Custom Radio Buttons
#foo doesn't reference any particular element, it's there purely to prevent browsers from implementing the later selectors if it doesn't understand that (since most browsers will drop the entire selector if any part of it fails).
Code:#foo :checked::before, input[type="checkbox"] { position:absolute; clip: rect(0,0,0,0); clip: rect(0 0 0 0); } #foo :checked, input[type="checkbox"] + label::before { content: url('checkbox.png'); } input[type="checkbox"]:checked + label::before { content: url('checkbox-checked.png'); }
EasyMoney Reviewed by EasyMoney on . Custom Radio Buttons #foo doesn't reference any particular element, it's there purely to prevent browsers from implementing the later selectors if it doesn't understand that (since most browsers will drop the entire selector if any part of it fails). #foo :checked::before, input { position:absolute; clip: rect(0,0,0,0); clip: rect(0 0 0 0); } Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)
Vn5socks.net 30-10-2024 | socks 5...
Live | 162.0.220.161:36709 | United States |...