Jump to content

Form block with fixed position as I scroll

Recommended Posts

  • Replies 4
  • Views 1.6k
  • Created
  • Last Reply

Hi.

Add to Home > Design > Custom CSS

/* Fixed form block */
div#block-yui_3_17_2_1_1607698148029_12321 {
    position: fixed;
    bottom: 0;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    background: white;
}
div#block-yui_3_17_2_1_1607698148029_12321 form {
    display: flex;
    align-items: center;
}
iv#block-yui_3_17_2_1_1607698148029_12321 .field-list {
    width: 80%;
    margin-right: 10px;
}
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1607698148029_12321 {
    width: 90%;
}
}

 

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

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.