DEV Community

Discussion on: What CSS tip do you want to share with others?

Collapse
 
adrianmarkperea profile image
Adrian Perea

The adjacent paragraphs snippet is cleaner than the solution I currently use. I select the last paragraph child to set a different margin.

Also, in case using position: absolute destroys your layout, an alternative would be negative margins. I use this for micro-adjustments, too!

Thanks for sharing!