Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Horizontal buttons distanced relative to each other?


DevDotEXE

Question

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

2 answers to this question

Recommended Posts

  • 0

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
  • 0
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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...