Jump to content

How to align title and subtitle in px for different grid sizes

Go to solution Solved by tuanphan,

Recommended Posts

Hello,

I'm building a website where i tried via code to cycle between 2 columns and single column portfolio grid, and with a title + subtitle. All is well except the alignment of the title and subtitle. Right now it seems to be based on a % number because the single column is double the margin than the 2 columns one.

Site right now is: glimpsevfx.squarespace.com/work

For example the "Popota Continente" i want to be aligned with the "Carrossel NOS". 

Code for cycling columns is:

#gridThumbs .grid-item:nth-of-type(3n+3){
grid-column: span 2;
}

Code for alignment i'm trying to use is:

.portfolio-text {
    position: absolute !important;
    top: 10%;
    left: 10%;
    transform: translate(-7.5%,-7.5%);
    z-index: 999;
    width: 50% !important;
}

Can someone help me out? 

Thank you,

Pedro

Link to comment
  • Replies 8
  • Views 952
  • Created
  • Last Reply

Top Posters In This Topic

Hi, it's on the original post: https://glimpsevfx.squarespace.com/work

Also, as a separate issue, for some reason after 30 projects it adds pages at the bottom of the section. I would like to remove this if possible, so i have all the projects on a single page. If not possible, how can i edit the look of these "1" "2" buttons?

Thank you,

Edited by Glimpse_web
Link to comment
23 hours ago, Glimpse_web said:

Hi, it's on the original post: https://glimpsevfx.squarespace.com/work

Also, as a separate issue, for some reason after 30 projects it adds pages at the bottom of the section. I would like to remove this if possible, so i have all the projects on a single page. If not possible, how can i edit the look of these "1" "2" buttons?

Thank you,

#1. You mean align these text?

image.png.6b571d5f1909dcf10ea3f7b5976d630e.png

#2. I see you figured it out with button style?

image.png.6fd2a30565c84a5341347d679795105c.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
  • Solution

#1. Add this to Bottom of Custom CSS box

/* align portfolio titles */
.portfolio-text {
    transform: unset !important;
    left: 30px !important;
    top: 30px !important;
    padding: unset !important;
}

#2. In your Filter Plugin code, change number 30 to another, eg 100 (this is number of item per page)

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