0

i have a social media icons section with html.

<li class="instagram pull-left"><a target="_blank" href="#"></a></li>

this is the style given to it.

.instagram a {
    font-size: 22px;
    display: inline-block!important;
    text-align: center;
    padding: 0;
    background: #359BED !important;
    color: #fff;
content: "\f16d";
    font-family: FontAwesome;
}

i want to give background white and the color the gradient color used in instagram .how to do this? i tried but the gradient is coming as background.not for instagram icon.anybody pls help.

jaina
  • 43
  • 1
  • 8

1 Answers1

1

try this , you can apply it on background or color depending on what you need

    .instagram
        {
            #Your code
             display:inline-block;
  
  /* Create the gradient. */
  background-image: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
  
  background-size: 100%;

  /* Use the text as a mask for the background. */
  /* This will show the gradient as a text color rather than element bg. */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
        }
M't
  • 166
  • 1
  • 10