Is it possible to create the following using CSS only?
I have created the container and the rounded corners. Fiddle here.
But I don't know how to get the slight shiny effect. Is it possible to do this in CSS? If so how?
Below is the code I have written so far.
HTML
<div id="phone-outer">
<div id="phone-inner">
</div>
</div>
CSS
#phone-outer {
margin-bottom:200px;
margin:0 auto;
width:400px;
height:500px;
background-color:#333;
-webkit-border-bottom-right-radius:25px;
-webkit-border-bottom-left-radius:25px;
-moz-border-radius-bottomright:25px;
-moz-border-radius-bottomleft:25px;
border-bottom-right-radius:25px;
border-bottom-left-radius:25px;
}
#phone-inner {
margin:0 auto;
background-color:#FFF;
width:360px;
height:460px;
}
Close enough I hope:
http://jsfiddle.net/UxSdU/13/
#phone-outer {
border: 1px solid #FFFFFF;
border-bottom-left-radius: 25px;
border-bottom-right-radius: 25px;
box-shadow: 0 3px 0.7px 1px #777777, 0 -7px rgba(0, 0, 0, 0.4) inset;
height: 500px;
width: 400px;
margin: 0 auto;
background-image: linear-gradient(right, #111 11%, #333 56%);
background-image: -o-linear-gradient(right, #111 11%, #333 56%);
background-image: -moz-linear-gradient(right, #111 11%, #333 56%);
background-image: -webkit-linear-gradient(right, #111 11%, #333 56%);
background-image: -ms-linear-gradient(right, #111 11%, #333 56%);
background-image: gradient(right, #111 11%, #333 56%);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With