Jump to content

Floating Button with Icon

Recommended Posts

  • Replies 2
  • Views 455
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

First, edit your HTML code to this

<div id="book-me">
  <a href="/contact"><svg class="olark-envelope-icon" width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" focusable="false" role="img" fill="none"><rect x="3" y="7" width="26" height="18" rx="2" stroke="currentcolor" stroke-width="2" stroke-linejoin="round"></rect><path d="M7 11L16 17L25 11" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> Contact Us! </a>
</div>

Next, edit your CSS code to this

#book-me {
    position: fixed;
    top: 50%;
    left: 85%;
    transform: none;
    transform-origin: 100% 0;
    z-index: 99999;
}
#book-me a {
    background: #7f99c8;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: montserrat;
    padding: 17px 33px;
    border-radius: 25px;
    display: flex;
    align-items: center;
}
#book-me svg {
    margin-right: 5px;
}

contact.png.fa2c28e234ad6d57a4461d69bdd31e35.png

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.