Initializing
Liveweave
Web
expand_more
home
Home
data_object
CSS Explorer
arrow_outward
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
outbox_alt
Generative AI
arrow_outward
frame_source
Python Playground
New
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Save
account_circle
Login
settings
Settings
expand_more
14
px
Live mode
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
<!DOCTYPE html> <html> <head> <title>Pure CSS Fancy Radio and Checkboxes</title> </head> <body> <div class="cssradio"> <input type="radio" name="radio" id="radio1"/> <label for="radio1">Male</label> <input type="radio" name="radio" id="radio2"/> <label for="radio2">Female</label> <input type="radio" name="radio" id="radio3"/> <label for="radio3">Both</label> </div> <hr/> <div class="csscheckbox"> <input type="checkbox" name="radio" id="check1"/> <label for="check1">Apple</label> <input type="checkbox" name="radio" id="check2"/> <label for="check2">Orange</label> <input type="checkbox" name="radio" id="check3"/> <label for="check3">Banana</label> </div> <hr/> <h1>Thanks for Watching :)</h1> </body> </html>
body{background: #fafafa;padding: 0 15px;font-family: sans-serif;} .cssradio input[type="radio"]{display: none;} .cssradio label{padding: 10px;margin: 15px 10px 0 0;background: #1da1f2;border-radius: 3px;display: inline-block;color: #fff; cursor: pointer;} .cssradio input:checked + label{ background: green; font-weight: bold; } .cssradio input:checked + label:before{ content: "> "; } .csscheckbox input[type="checkbox"]{ display: none; } .csscheckbox label{padding: 10px;margin: 15px 10px 0 0;background: #ff5400;border-radius: 3px;display: inline-block;color: #fff; cursor: pointer;} .csscheckbox input:checked + label{ background: green; font-weight: bold; } .csscheckbox input:checked + label:before{ content: "> "; }
// Write JavaScript here