Jump to content

CSS Counter Always 2 Digits

Recommended Posts

Site URL: http://differentkennedy.com/apparel#/star-wars

Previously worked here to gain CSS to apply a counter as thumbnails within a gallery grid so that lightbox clickthroughs were originally displayed as numbers for a cleaner layout. 

Recently updating the layout and would like to add more images but would like the counter to always remain at 2 digits - ie "1" is displayed as "01" while "10" remains "10" 

Currently the 0 appears before all numbers and I'd like to maintain a two digit counter only if possible. See image below for current display

Screen Shot 2021-06-06 at 2.14.20 PM.png

Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 years later...

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.