semigrownkid Posted October 1, 2022 Posted October 1, 2022 (edited) Site URL: https://uxplaybook.org/ux-accelerator Hello @tuanphan I need help making this block sticky (fluid engine) #block-yui_3_17_2_1_1664264642296_1491046 How do I make this block stop at the footer? Quote /* Text sticky */ @media screen and (min-width:768px) { .fe-block.fe-block-yui_3_17_2_1_1664264642296_1491046 { position: sticky; top: 200px; position: -webkit-sticky; z-index: 999; }} Edited October 1, 2022 by semigrownkid
Beyondspace Posted October 1, 2022 Posted October 1, 2022 4 hours ago, semigrownkid said: Site URL: https://uxplaybook.org/ux-accelerator Hello @tuanphan I need help making this block sticky (fluid engine) #block-yui_3_17_2_1_1664264642296_1491046 How do I make this block stop at the footer? Quote /* Text sticky */ @media screen and (min-width:768px) { .fe-block.fe-block-yui_3_17_2_1_1664264642296_1491046 { position: sticky; top: 200px; position: -webkit-sticky; z-index: 999; }} I check that it is set sticky within the current section. Do you need to set it fixed for entire page? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
semigrownkid Posted October 1, 2022 Author Posted October 1, 2022 7 hours ago, bangank36 said: I check that it is set sticky within the current section. Do you need to set it fixed for entire page? Yes please. It needs to be fixed until the footer (but not for anything above it)
Goood_Studio Posted January 13, 2023 Posted January 13, 2023 Hello - did you manage to get the block to be fixed over the whole page (I am assuming multiple sections? I can only get it to stick to one section Thanks
tuanphan Posted January 15, 2023 Posted January 15, 2023 On 1/13/2023 at 6:36 PM, couldbegood said: Hello - did you manage to get the block to be fixed over the whole page (I am assuming multiple sections? I can only get it to stick to one section Thanks If fixed whole page, I think you need to use position fixed not sticky 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!)
Goood_Studio Posted January 19, 2023 Posted January 19, 2023 On 1/15/2023 at 9:27 AM, tuanphan said: If fixed whole page, I think you need to use position fixed not sticky This is the code I'm using in the page header: #block-yui_3_17_2_1_1673604221221_17626{ position: fixed; top: 40%; left: 96%; transform-origin: 100% 0; z-index: 9999; width: 40px; } But only appears for that section unthinkable.squarespace.com unthinkable Thanks
tuanphan Posted January 26, 2023 Posted January 26, 2023 On 1/19/2023 at 10:37 PM, couldbegood said: This is the code I'm using in the page header: #block-yui_3_17_2_1_1673604221221_17626{ position: fixed; top: 40%; left: 96%; transform-origin: 100% 0; z-index: 9999; width: 40px; } But only appears for that section unthinkable.squarespace.com unthinkable Thanks Which page are you referring to? I don't see this block on homepage 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!)
Goood_Studio Posted January 31, 2023 Posted January 31, 2023 On 1/26/2023 at 8:02 AM, tuanphan said: Which page are you referring to? I don't see this block on homepage Thanks but I decided to just use the header button and have it fixed and hide the logo on scroll tuanphan 1
MariaFY Posted April 23, 2023 Posted April 23, 2023 @tuanphan Do you know how I could get the first section to stick to the top (heading + graphic) and the blog below scrolling through while the heading stays? I tried the code in this thread but can't seem to identify the correct ID or class selector. Thanks for you help if you have a minute. site: https://hmna.squarespace.com/news pw: macadamia
tuanphan Posted April 25, 2023 Posted April 25, 2023 Add to Design > Custom CSS @media screen and (min-width:768px) { [data-section-id="6440e1c28a8cbf7010a655b8"] { position: sticky; top: 0; z-index: 99999; } } MariaFY 1 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!)
adrientharrison Posted May 18, 2023 Posted May 18, 2023 (edited) Hey @tuanphan , I tried this code: @media screen and (min-width:768px) { .fe-block fe-block-yui_3_17_2_1_1680639793166_2840 { position: sticky; top: 0; position: -webkit-sticky; z-index: 999; } } for the following page (https://echostudio.co/about) where I'm trying to get the search bar and the table of contents box on the right to be fixed / sticky only when a user is scrolling through the "What Happens at ES" section Would appreciate it if you could help me out 🙂 Edited May 18, 2023 by adrientharrison
tuanphan Posted May 22, 2023 Posted May 22, 2023 On 5/19/2023 at 1:37 AM, adrientharrison said: Hey @tuanphan , I tried this code: @media screen and (min-width:768px) { .fe-block fe-block-yui_3_17_2_1_1680639793166_2840 { position: sticky; top: 0; position: -webkit-sticky; z-index: 999; } } for the following page (https://echostudio.co/about) where I'm trying to get the search bar and the table of contents box on the right to be fixed / sticky only when a user is scrolling through the "What Happens at ES" section Would appreciate it if you could help me out 🙂 Use this new code @media screen and (min-width:768px) { .fe-block-yui_3_17_2_1_1680639793166_2840 { position: sticky; top: 0; position: -webkit-sticky; } } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment