Jump to content

Centering Vertical Rotated Text Code Block When Responsive (Not working)

Go to solution Solved by Beyondspace,

Recommended Posts

I used a code block to create vertical text, but when I change the window size smaller, the left text moves up a little and the right moves down. I want them to stay centered with each other. Can anyone help?

Used a code block with:

<center><span class="keeptogether">
  <p style="transform: rotate(90deg);
    font-size: 12px; letter-spacing: 6px;
    color: #fcf1e4;">VIEW BY</span></center>
  

 

 

https://mustard-sepia-aphj.squarespace.com/galleries

pass: katiemakes

libbby_full screen.png

libbby_smaller window.png

Edited by katiemakesdesign
Link to comment
  • katiemakesdesign changed the title to Centering Vertical Rotated Text Code Block When Responsive (Not working)
18 hours ago, katiemakesdesign said:

I used a code block to create vertical text, but when I change the window size smaller, the left text moves up a little and the right moves down. I want them to stay centered with each other. Can anyone help?

Used a code block with:

<center><span class="keeptogether">
  <p style="transform: rotate(90deg);
    font-size: 12px; letter-spacing: 6px;
    color: #fcf1e4;">VIEW BY</span></center>
  

 

 

https://mustard-sepia-aphj.squarespace.com/galleries

pass: katie makes

libbby_full screen.png

libbby_smaller window.png

It shows the wrong password. Can you check it again?

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
  • Solution

You can try the following code on Home > Design > Custom Css

.keeptogether {
  display: flex;
  justify-content: center;
  align-items: center;
}

Support me by pressing 👍 or marking as solution if this is useful for you

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

My testing

image.png

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

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.