Jump to content

Adding floating social icons with vertical text

Recommended Posts

  • Replies 3
  • Views 690
  • Created
  • Last Reply

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
  • 2 years later...
On 4/24/2024 at 6:31 AM, CMo102409 said:

How was this used in a code block if it needs to be on every page? Wouldn't it be in the header injection? @jeffratto Care to share how you ended up doing this on your site? It looks great and I'd like to do the same.

You can add it to Website > Website Tools > Code Injection > Footer

In case you use Personal Plan and don't have Code Injection, you can edit Site Footer > Add a Block > Choose Code > Then paste same code.

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.