Tag: Set height add radius size address WebKit margin pre
<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta name= "viewport" content= "initial-scale=1.0, maximum-scale=1.0, User-scalable=no"/>
<meta name= "Viewport"
Content= "Width=device-width, User-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" >
<title> New Shipping Address </title>
<link rel= "stylesheet" type= "Text/css" href= "Css/reset.css"/> (clear element default style)
<script src= "Js/flexible.debug.js" ></script> (Ali's adaptation)
<script src= "Js/flexible_css.debug.js" ></script>
<style>
. add_list {
Border-top:0.26667rem solid #f5f5f5;
Margin-bottom:2.45333rem; }
. add_list. Add_item {
width:100%;
Height:1.28rem;
Line-height:1.28rem;
Font-size:0.37333rem;
Color: #4c4c4c;
Padding:0 0.32rem;
Background: #ffffff;
border-bottom:1px solid #ededed;
position:relative; }
. add_list. choosebtn {
Display:none; }
. add_list. Choose-label {
Width:1.33333rem;
Height:0.74667rem;
Display:inline-block;
border-radius:20px;
position:relative;
Background-color: #cccccc;
Overflow:hidden;
Margin-top:0.26667rem; }
. add_list. Choose-label:before {
Content: ";
Position:absolute;
Left:0.05333rem;
Width:0.69333rem;
Height:0.69333rem;
Top:0.02667rem;
Display:inline-block;
Border-radius:0.53333rem;
Background-color: #fff;
z-index:20;
-webkit-transition:all 0.5s;
Transition:all 0.5s; }
. add_list. choosebtn:checked + Label.choose-label:before {
Left:0.61333rem; }
. add_list. choosebtn:checked + Label.choose-label {
Background-color: #22d078; }
</style>
<body>
<ul class= "Add_list" >
<li class= "Add_item" >
<span class= "FL" > Set as Default:</span>
<span class= "FR" >
<input type= "checkbox" name= "Sex" id= "male" class= "choosebtn"/>
<label for= "male" class= "Choose-label" ></label>
</span>
</li>
</ul>
</body>
CSS Implementation Sliders