Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Troubleshooting the position:sticky on an Archive block


Question

Site URL: https://www.anybodysautos.squarespace.com

Hi frens,

I threw in this simple CSS to make the grey Blog archive on the right sticky to the top, but the position is not working. I've been reading up on the overflow:hidden attributes of a parent element, but I can't find any codes to overcome that... What am I doing wrong?

li.archive-group {
  position: sticky;
  background: grey;
  color: #ffffff;
  top: 20px;
  z-index:1000;
  width:100%;
  padding-top: 17px;
  padding-bottom: 17px;
  padding-left: 17px;
  padding-right: 17px;
  box-shadow: 3px 3px 7px rgba(0,0,0,0.5)
}

The password for this site is: AutoSales

Edited by HansenCreations
Link to post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...