Jump to content

Horizontal buttons distanced relative to each other?

Recommended Posts

Site URL: https://watermelon-koala-napg.squarespace.com/bio-archidex

password: singularity

Hello! 


I'm trying to find a way to make the three buttons on the bottom of the right column ("<", "Get Archidex", and ">") to all float left and have a set pixel distance from one another that stays relative with content differences (I'll be using this code on many pages).

So, all three will be pushed left in that column and be ~10px apart regardless of text length.

I've tried width: fit-content with float: left, but that doesn't seem to achieve what I want. Any help would be enormously appreciated. 

Page-specific code is in a block at the bottom of the page above the footer.

Thanks!

Link to comment

the value you want is max-content, not fit-content.  I don't think you'll need to declare the float if you just set that.
The below will change that for ALL buttons inside content (with the class button-col).

.content .button-col {
	width: max-content !important;
	
}

 

Edited by IgnitePerth
clarification of class .button-col

Contact Us for detailed help

Common Squarespace Tips

Sharing Your Site Link

Squarespace web designers in Perth WA.

Link to comment
On 7/20/2021 at 12:59 AM, DevDotEXE said:

Site URL: https://watermelon-koala-napg.squarespace.com/bio-archidex

password: singularity

Hello! 


I'm trying to find a way to make the three buttons on the bottom of the right column ("<", "Get Archidex", and ">") to all float left and have a set pixel distance from one another that stays relative with content differences (I'll be using this code on many pages).

So, all three will be pushed left in that column and be ~10px apart regardless of text length.

I've tried width: fit-content with float: left, but that doesn't seem to achieve what I want. Any help would be enormously appreciated. 

Page-specific code is in a block at the bottom of the page above the footer.

Thanks!

 

On 7/20/2021 at 12:59 AM, DevDotEXE said:

Site URL: https://watermelon-koala-napg.squarespace.com/bio-archidex

password: singularity

Hello! 


I'm trying to find a way to make the three buttons on the bottom of the right column ("<", "Get Archidex", and ">") to all float left and have a set pixel distance from one another that stays relative with content differences (I'll be using this code on many pages).

So, all three will be pushed left in that column and be ~10px apart regardless of text length.

I've tried width: fit-content with float: left, but that doesn't seem to achieve what I want. Any help would be enormously appreciated. 

Page-specific code is in a block at the bottom of the page above the footer.

Thanks!

Do you need to help with these?

Site URL – https://watermelon-koala-napg.squarespace.com/?password=singularity

1. (Tablet-Homepage) Increase text width?

https://watermelon-koala-napg.squarespace.com/?password=singularity

watermelon-koala-napg.squarespace.com-01

2. (Tablet-Homepage) Increase text width?

https://watermelon-koala-napg.squarespace.com/?password=singularity

watermelon-koala-napg.squarespace.com-02

3. (Table-Homepage) Resize it?

https://watermelon-koala-napg.squarespace.com/?password=singularity

watermelon-koala-napg.squarespace.com-03

4. (Mobile-Homepage) Resize it?

https://watermelon-koala-napg.squarespace.com/?password=singularity

watermelon-koala-napg.squarespace.com-04

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.