0

using follwing fontowesome social media links and need draw a circle around social media logo. how can do this?

<ul class="social-media list-inline" align="right">
                    <li><a href="#"><span class="fa fa-facebook"></span></a></li>
                    <li><a href="#"><span class="fa fa-envelope"></span></a></li>
                    <li><a href="#"><span class="fa fa-twitter"></span></a></li>
                    <li><a href="#"><span class="fa fa-youtube-play"></span></a></li>
                    <li><a href="#"><span class="fa fa-instagram"></span></a></li>
                    </ul>

I am going to select follwing css file

#circle {
    width: 100px;
    height: 100px;
    background: red;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
}
3
  • Have you tried anything on this? Also can you add in the css for those specific classes as well? Someone should be able to give you a working example. Commented Aug 4, 2017 at 4:32
  • see my edited question Commented Aug 4, 2017 at 4:39
  • Your ID is not referenced in the HTML you sent, also add in the css for the classes thats in the above code please? Commented Aug 4, 2017 at 4:40

2 Answers 2

4

.social-media li {
  list-style-type: none;
  padding: 10px 10px;
  background-color: pink;
  display: inline-block;
  border-radius: 50px;
}
<html>
  <head>
  <script src="https://use.fontawesome.com/a2e210f715.js"></script>
  </head>
  <body>
    <ul class="social-media">      
      <li><a href="#"><span class="fa fa-envelope"></span></a></li>
      <li><a href="#"><span class="fa fa-twitter"></span></a></li>
      <li><a href="#"><span class="fa fa-youtube-play"></span></a></li>
      <li><a href="#"><span class="fa fa-instagram"></span></a></li>
    </ul>
  </body>
</html>

By using border-radius and padding we can form a circle around the icons.

Sign up to request clarification or add additional context in comments.

6 Comments

Is this only you are expecting??
Its is the font-awesome CDN link
Font Awesome CDN is the easiest way to get icons on our web page.
now I need circle witch middle empty (like ring) how can do this?
sorry bro, now I get the point. We can add CDN in multiple ways. I used script tag. I got this one to my email from fontawesome.io. I had mentioned there my email address.
|
0
<head>
<link rel="stylesheet" type="text/css" href="your file name.css">
</head>

wrap each

  • in a div with id circle it may get you your circle icons

  • Comments

    Your Answer

    By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.