Jump to content

Make price appear on the same line as the title in a product block

Go to solution Solved by Hallowxx,

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try this Custom CSS:

section[data-section-id="63cc7ae8b155d84db08b356f"] {
  #productDetails {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .product-price {
    margin-top: 1.5em;
  }
}

 

Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

This is what ended up working for me:

div.productDetails {
    display: flex;
    align-items: top;
    justify-content: space-between;
}
div.productDetails>* {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

 

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.