Jump to content

Left justify icons using FontAwesome

Recommended Posts

  • Replies 10
  • Views 508
  • Created
  • Last Reply

Top Posters In This Topic

56 minutes ago, snavlakha said:

Site URL: https://www.polaritycode.com/

I'm using FontAwesome on my website for social media icons. Is it possible to left justify the icons instead of centering them?

Try adding to Home > Design > Custom Css

#collection-5ffcabbe690530216d1f6874 .t-social {
  display: flex;
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
18 minutes ago, bangank36 said:

Try adding to Home > Design > Custom Css

#collection-5ffcabbe690530216d1f6874 .t-social {
  display: flex;
}

Let me know how it works on your site

 

Thank you! That worked! One other question. I have a button on my website that uses custom code to open a pop-up when someone clicks on it. How do I center the button? Code snippet below.

 

<!--To modify button, go to CSS-->
<style>
.featherlight-content {
    color: #000;
}
</style>

<span style="color:#000;">
<div style="display:none;">
<!--<div style="font-family:Alternate Gothic No3 D; font-size:large"; id="with-unbound-spirit">-->
<div id="with-unbound-spirit">

<p class="a"><b><u>WITH UNBOUND SPIRIT - RELEASE DATE</u></b></p>
February 25, 2022<br><br>
<p class="a"><b><u>WITH UNBOUND SPIRIT - CREDITS</u></b></p>
<b>Composition:</b> Saral Navlakha<br>
</div>
</div>
<body>
<a href="#" class="button button1" data-featherlight="#with-unbound-spirit">Song Title</a>
</body>

Link to comment
2 hours ago, snavlakha said:

 

Thank you! That worked! One other question. I have a button on my website that uses custom code to open a pop-up when someone clicks on it. How do I center the button? Code snippet below.

 

<!--To modify button, go to CSS-->
<style>
.featherlight-content {
    color: #000;
}
</style>

<span style="color:#000;">
<div style="display:none;">
<!--<div style="font-family:Alternate Gothic No3 D; font-size:large"; id="with-unbound-spirit">-->
<div id="with-unbound-spirit">

<p class="a"><b><u>WITH UNBOUND SPIRIT - RELEASE DATE</u></b></p>
February 25, 2022<br><br>
<p class="a"><b><u>WITH UNBOUND SPIRIT - CREDITS</u></b></p>
<b>Composition:</b> Saral Navlakha<br>
</div>
</div>
<body>
<a href="#" class="button button1" data-featherlight="#with-unbound-spirit">Song Title</a>
</body>

Can you share the screenshot of it?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 2/28/2022 at 9:17 AM, snavlakha said:

Yes, I figured that part out. But I still haven't figured out how to center the "With Unbound Spirit" button per my follow up question above. Do you know the answer to this? Thank you.

Add to Design > Custom CSS

a.button.button1 {
    text-align: left;
    padding-left: 5px;
}

 

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
On 3/3/2022 at 1:33 AM, tuanphan said:

Add to Design > Custom CSS

a.button.button1 {
    text-align: left;
    padding-left: 5px;
}

 

This doesn't center the button. I want to center the entire button. The text is already centered within the button and is fine as is. Any additional thoughts on how to do this?

Link to comment
On 3/6/2022 at 1:16 PM, snavlakha said:

This doesn't center the button. I want to center the entire button. The text is already centered within the button and is fine as is. Any additional thoughts on how to do this?

Add to Design > Custom CSS

.sqs-block-content>span {
    display: block;
    text-align: center;
}

image.thumb.png.f0275072a5ba46166e2c53a8a087e9e4.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.