Jump to content

Adding floating social icons with vertical text

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

They used this code into Code Block

<div class="left-sidebar">
  <ul>
    <li>Follow Us</li>
    <li><a target="_blank" href="https://www.facebook.com/golivehq" tabindex="0"><i class="fa fa-facebook"></i></a></li>
<li><a target="_blank" href="http://instagram.com/golivehq" tabindex="0"><i class="fa fa-instagram"></i></a></li>
<li><a target="_blank" href="https://twitter.com/golivehq" tabindex="0"><i class="fa fa-twitter"></i></a></li>
<li><a target="_blank" href="https://www.pinterest.com/golivehq/" tabindex="0"><i class="fa fa-pinterest"></i></a></li>
  </ul>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  .left-sidebar {
    position: fixed;
    bottom: 36%;
    left: 3.2%;
    z-index: 999;
    width: 15px;
}
  .left-sidebar ul, .right-sidebar ul {
    margin: 0;
    padding: 0;
}
  .left-sidebar ul li:first-child {
    transform: rotate(-270deg);
    width: 120px;
    transform-origin: 41px -20px;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Gilmer-Regular';
}
  .left-sidebar ul li:nth-child(2):before {
    content: "";
    width: 1px;
    height: 50px;
    background: #000;
    margin: 0 auto 15px;
    display: block;
}
  .left-sidebar ul li a, .right-sidebar ul li a {
    color: #000;
    transition: all .2s ease-in-out;
}
  
</style>

 

Edited by tuanphan
missing FontAwesome version

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.