css - Is it possible to create a gradient border on a CIRCLE with css3? -


i have background image in shape of circle. have given yellow border. change border gradient yellow white. have seen many examples square borders none applied circles. here's code:

.profileimage{    background-image: url("images/profilepic.jpg");    background-repeat: no-repeat;    background-size: cover;    overflow:hidden;    -webkit-border-radius:50px;    -moz-border-radius:50px;    border-radius:50%;    width:100px;    height:100px;    border: 5px solid rgb(252,238,33);   }
<div class="profileimage"></div>

thanks!!

maybe this?

.profileimage{   position: relative;   background: linear-gradient(rgb(252,238,33), rgb(255,255,255));   -webkit-border-radius:50px;   -moz-border-radius:50px;   border-radius:50%;   width:100px;   height:100px; } .profileimage:after{   position: absolute;   display: block;   top: 5px;   left: 5px;   width: 90px;   height: 90px;   content: "";   background-color: #fff;   background-image: url("images/profilepic.jpg");   background-repeat: no-repeat;   background-size: cover;   border-radius: 50%;   overflow: hidden; } 

not sure if that's you're looking for, can set background gradient, , position element on top (here i'm using 'after' pseudo selector)

fiddle: http://jsfiddle.net/6ue88pu6/1/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -