Jump to content

What is the class or the selector of the product elements? Margin issue

Recommended Posts

When I target my products, in css, it moves everything down across my site. What is the actual class or selector of my products? Please help! I removed my z-index's, thinking that would help, but it doesn't. 

you can see in this link my products are at the top of the page, in places they are not supposed to be.

On my landing page, my first item is now at the top. Why does this code (injected into html header site wide), and setting the margins as seen in bold, move everything up across my site?

 /* Style for individual product */
    .product {
      position: relative;
      margin: 50px auto; /* Center horizontally by setting auto margins */
      margin-top: -100px;
      padding-left: 20px; /* Adjust the left spacer as needed */
    padding-right: 20px; /* Adjust the right spacer as needed */
      z-index: 1;




Edited by 2Eyeballs
Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.