Results 1 to 1 of 1
-
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 1 users browsing this thread. (0 members and 1 guests)
Vn5socks.net 21-11-2024 | socks 5...
Live | 107.180.107.116:41716 | United States |...