Jump to content

How to customise a button on an image block in 7.1

Recommended Posts

Site URL: https://nicolaomara.squarespace.com/home

Hi everyone! I'm looking to customise some buttons on a page on a site I'm currently working on https://nicolaomara.squarespace.com/home (still in trial mode atm). I'd like to create something like the image below, do I either, a) Add custom css to an image block, or b) position a button so that it overlaps the top edge of the image? Would really appreciate some advice and help with coding as I'm not very confident with css.

Thanks!

Screenshot 2021-06-11 at 13.44.35.png

Link to comment
21 hours ago, designroomcornwall said:

Sorry @tuanphan, password is: seagreen1

Add to Design > Custom CSS

/* buttons overlap */
div#page-section-609be0d2ffa91a64632e310e figcaption {
    align-items: flex-start;
}
div#page-section-609be0d2ffa91a64632e310e .image-button a {
    position: relative;
    top: -25px;
}

 

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
5 hours ago, tuanphan said:

Add to Design > Custom CSS


/* buttons overlap */
div#page-section-609be0d2ffa91a64632e310e figcaption {
    align-items: flex-start;
}
div#page-section-609be0d2ffa91a64632e310e .image-button a {
    position: relative;
    top: -25px;
}

 

Thank you that's great! Is it possible to style just those two buttons to look more like my mockup? White with black text and a thin black border.

Link to comment

Use this code

/* buttons overlap */
div#page-section-609be0d2ffa91a64632e310e figcaption {
    align-items: flex-start;
}
div#page-section-609be0d2ffa91a64632e310e .image-button a {
    position: relative;
    top: -25px;
    border: 1px solid black;
    background-color: white;
    color: black;
}

 

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.