Jump to content

Unable to use flexbox to align items horizontally

Recommended Posts

Posted

Site URL: https://shapemeup.ca

Hi everyone! I'm helping a client with her site, and unfortunately I'm unable to horizontally align the header's text and image. I would typically opt for flexbox or grid, but whenever I select the ID of the element holding the divs and write up

display: flex;
align-items: center;

it shows as if it has worked, great. However, when I press save, nothing has happened. When I go on the inspector tools and see if it has actually saved, it says it has, however the flexbox properties are strictly not working, even if I'm using the `!important` attribute.

Sad thing is, if I try using another CSS attribute in that element, such as changing the background-color, it works completely fine.

Any info would be great. I'm a professional web developer and I've tried for hours to no avail. Imagine my frustration, lol.

 

  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply
Posted
1 hour ago, reemify said:

Site URL: https://shapemeup.ca

Hi everyone! I'm helping a client with her site, and unfortunately I'm unable to horizontally align the header's text and image. I would typically opt for flexbox or grid, but whenever I select the ID of the element holding the divs and write up


display: flex;
align-items: center;

it shows as if it has worked, great. However, when I press save, nothing has happened. When I go on the inspector tools and see if it has actually saved, it says it has, however the flexbox properties are strictly not working, even if I'm using the `!important` attribute.

Sad thing is, if I try using another CSS attribute in that element, such as changing the background-color, it works completely fine.

Any info would be great. I'm a professional web developer and I've tried for hours to no avail. Imagine my frustration, lol.

 

What is the full code you used, I placed this code and it working well

section[data-section-id="5eb775d93e021120eb37843c"] [data-type="page-section"] > .row {
  display: flex;
  align-items: center;
}

image.thumb.png.fe7c32b618cf47d45af5a7f8032ad9a7.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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!

Archived

This topic is now archived and is closed to further replies.

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