input[type=”submit”] type button IPhone Style Issue:
IPhone input[type=”submit”] type button Issue Solution Style :
input[type="submit"]{
-webkit-appearance: none;
-moz-appearance: none;
}
IOS Phone Number Style ‘a[href^=tel]’
.contact_span .contact_span_bold a{font-family: OpenSans-Bold;color:#ffffff;text-transform: uppercase;text-decoration: none;}
.contact_span .contact_span_bold a[href^=tel] {font-family: OpenSans-Bold;color:#ffffff;text-transform: uppercase;text-decoration: none;}
IPhone 6 Design Issue Code:
Note: background-position:fixed not support
div {
background-image: url(images/welcome.jpg);
background-attachment: fixed;
background-position: top center;
background-size: cover;
height: 100vh;
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
}
IPhone 6 Design Code:
Note: background-position:scroll support
div {
background-image: url(images/welcome.jpg);
background-attachment: scroll;
background-position: top center;
background-size: cover;
height: 100vh;
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
}
Firefox Not Supporting Style Code:
div{
background-image: url(../images/welcome.jpg);
background-attachment: fixed;
background-size: cover;
background-position-y: 10px;
background-position-x: 10px;
}
Firefox Supporting Style Code:
div{
background-image: url(../images/welcome.jpg);
background-attachment: fixed;
background-size: cover;
background-position: 10px 10px;
}
CSS Media device-aspect-ratio query for iPhone 5 and iPhone 6 and iPad
iPhone < 5:
@media screen and (device-aspect-ratio: 2/3) {}
iPhone 5:
@media screen and (device-aspect-ratio: 40/71) {}
iPhone 6:
@media screen and (device-aspect-ratio: 667/375) {}
iPhone 6 Plus:
@media screen and (device-aspect-ratio: 16/9) {}
iPad:
@media screen and (device-aspect-ratio: 3/4) {}
div can changed in the style to the textarea
<div id="textarea" contenteditable></div>
the style of the id textarea added textarea style
#textarea {
-moz-appearance: textfield-multiline;
-webkit-appearance: textarea;
border: 1px solid gray;
font: medium -moz-fixed;
font: -webkit-small-control;
height: 28px;
overflow: auto;
padding: 2px;
resize: both;
width: 400px;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar { /* 1 */ width:7px;}
::-webkit-scrollbar-button { /* 2 */ }
::-webkit-scrollbar-track { /* 3 */ background: #ffffff;}
::-webkit-scrollbar-track-piece { /* 4 */ background: #ffffff; }
::-webkit-scrollbar-thumb { /* 5 */ background-color: #E4E4E4; height: 54px;}
::-webkit-scrollbar-corner { /* 6 */ }
::-webkit-resizer { /* 7 */ }
.arrow-up {
width: 2px;
height: 0px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 7px solid #fff;
float: right;
margin-top: 9px;
right: 27px;
margin-right: 7px;
}
.arrow-down {
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 7px solid #fff;
float: right;
margin-top: 9px;
right: 27px;
margin-right: 7px;
}
<div class=”container”>
<div class=”switch”>
<input type=”radio” class=”switch-input” name=”view” value=”week” id=”week” checked>
<label for=”week” class=”switch-label switch-label-off”>yes</label>
<input type=”radio” class=”switch-input” name=”view” value=”month” id=”month”>
<label for=”month” class=”switch-label switch-label-on”>no</label>
<span class=”switch-selection”></span>
</div>
</div>
CSS :
body {
font: 13px/20px “Lucida Grande”, Tahoma, Verdana, sans-serif;
color: #404040;
background: #363a41;
}
.container {
margin: 50px auto;
width: 120px;
}
.switch {
position: relative;
margin: 20px auto;
height: 26px;
width: 120px;
background: rgba(0, 0, 0, 0.25);
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
}
.switch-label {
position: relative;
z-index: 2;
float: left;
width: 58px;
line-height: 26px;
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
text-align: center;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
cursor: pointer;
}
.switch-label:active {
font-weight: bold;
}
.switch-label-off {
padding-left: 2px;
}
.switch-label-on {
padding-right: 2px;
}
.switch-input {
display: none;
}
.switch-input:checked + .switch-label {
font-weight: bold;
color: rgba(0, 0, 0, 0.65);
text-shadow: 0 1px rgba(255, 255, 255, 0.25);
-webkit-transition: 0.15s ease-out;
-moz-transition: 0.15s ease-out;
-o-transition: 0.15s ease-out;
transition: 0.15s ease-out;
}
.switch-input:checked + .switch-label-on ~ .switch-selection {
/* Note: left: 50% doesn’t transition in WebKit */
left: 60px;
}
.switch-selection {
display: block;
position: absolute;
z-index: 1;
top: 2px;
left: 2px;
width: 58px;
height: 22px;
background: #65bd63;
border-radius: 3px;
background-image: -webkit-linear-gradient(top, #9dd993, #65bd63);
background-image: -moz-linear-gradient(top, #9dd993, #65bd63);
background-image: -o-linear-gradient(top, #9dd993, #65bd63);
background-image: linear-gradient(to bottom, #9dd993, #65bd63);
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
-webkit-transition: left 0.15s ease-out;
-moz-transition: left 0.15s ease-out;
-o-transition: left 0.15s ease-out;
transition: left 0.15s ease-out;
}
<link rel="stylesheet" type="text/css" href="theme.css">
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 32px #6B6666;