I'm trying to style 4 divs (next to each other) of the same class with a margin-right of 35px to divide them evenly, except for the last div so it doesn't add extra margins to the 30px margin already assigned to the right side of the wrapper.
Now, I'm not an expert at coding yet so I might be wrong here, but I was thinking that I could add margin-right: 0; inline to the last div to override the property value 35px in my stylesheet.
Would this work? Or is there a different solution that I'm not seeing?
Edit: thanks to you all, the last-child pseudo selector worked! :-)
last-divwithmargin-right: 0 !important;.