Landscaping Single Box

Source: Internet
Author: User

<!doctype html>
<meta charset= "Utf-8" >
<title>radio</title>
<body>

<style>

/* RADIO */
. regular-radio {
Display:none;
}
/* The circle looks like a picture or color when unchecked */
. Regular-radio + Label {
-webkit-appearance:none;
Background-color: #fafafa;
border:1px solid #cacece;
box-shadow:0 1px 2px Rgba (0,0,0,0.05), inset 0px-15px 10px-12px Rgba (0,0,0,0.05);
padding:9px;
border-radius:50px;
Display:inline-block;
position:relative;
}
/* image or color inside the circle when selected */
. regular-radio:checked + Label:after {
Content: ";
width:12px;
height:12px;
border-radius:50px;
Position:absolute;
top:3px;
Background: #99a1a7;
Box-shadow:inset 0px 0px 10px rgba (0,0,0,0.3);
text-shadow:0px;
left:3px;
font-size:32px;
}
/* Look at the picture or color of the circle */
. regular-radio:checked + Label {
Background-color: #e9ecee;
Color: #99a1a7;
border:1px solid #adb8c0;
box-shadow:0 1px 2px Rgba (0,0,0,0.05), inset 0px-15px 10px-12px Rgba (0,0,0,0.05), inset 15px 10px-12px Rgba (255,255,25 5,0.1), inset 0px 0px 10px rgba (0,0,0,0.1);
}

/* Increase style */

. Big-radio + Label {
padding:16px;
}

. big-radio:checked + Label:after {
width:24px;
height:24px;
left:4px;
top:4px;
}
/*-------IGNORE */
</style>

<div>
<div class= "tag" >radio small</div>
<div class= "Button-holder" >
<input type= "Radio" id= "Radio-1-1" name= "Radio-1-set" class= "Regular-radio" checked/><label for= "Radio-1-1" ></label><br/>
<input type= "Radio" id= "Radio-1-2" name= "Radio-1-set" class= "Regular-radio"/><label for= "Radio-1-2" > </label><br/>
<input type= "Radio" id= "Radio-1-3" name= "Radio-1-set" class= "Regular-radio"/><label for= "Radio-1-3" > </label><br/>
<input type= "Radio" id= "Radio-1-4" name= "Radio-1-set" class= "Regular-radio"/><label for= "Radio-1-4" > </label><br/>
</div>
</div>
<div>
<div class= "tag" >radio big</div>
<div class= "Button-holder" >
<input type= "Radio" id= "radio-2-1" name= "Radio-2-set" class= "Regular-radio big-radio"/><label for= " Radio-2-1 "></label><br/>
<input type= "Radio" id= "Radio-2-2" name= "Radio-2-set" class= "Regular-radio big-radio"/><label for= " Radio-2-2 "></label><br/>
<input type= "Radio" id= "radio-2-3" name= "Radio-2-set" class= "Regular-radio big-radio" checked/><label for= " Radio-2-3 "></label><br/>
<input type= "Radio" id= "Radio-2-4" name= "Radio-2-set" class= "Regular-radio big-radio"/><label for= " Radio-2-4 "></label><br/>
<input type= "Radio" id= "radio-2-5" name= "Radio-2-set" class= "Regular-radio big-radio"/><label for= " Radio-2-5 "></label><br/>
</div>
</div>
</div>


</body>

Landscaping Single Box

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.