I have a column component (listings) displaying my listing (listing) two-by-two on each row. I want to control the padding according to the listing position.
I’m looking to sets for each first item a
padding-left: 0px; padding-right: 10px;
and for each second item
padding-left: 10px; padding-right: 0px;
Assuming we are using a collection-based structure, it’s not possible to control the listing behavior independently.
I tried the following approach using odd and even below :
I copied the snippet on the custom CSS editor (right side panel) of the listing element before pushing it live, but unfortunately, nothing changed.
Also, when I copied the snippet into the custom CSS editor if a clicked somewhere else and I return into the custom CSS editor, the code appears to be completely destroyed
I’m having a similar issue on the CustomCSS panel. I tried a really simple test. I created a div, gave it the #id myDiv and then entered the following code in the Custom CSS editor
#myDiv:hover{
background-color:blue;
}
Once I click somewhere else in the page I the CSS changes. It looks like its some sort of autocorrect? How do I use the Custome CSS component? Is it meant to be an inline style so I need to follow the inline syntax?