Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
CSS: Margin Top vs. Bottom (A Trick You Should Know) (matthewjamestaylor.com)
2 points by popcalc on May 24, 2024 | hide | past | favorite | 1 comment


    .container * + * { margin-top: 1em; }

First, reset. Then, the lobotomized owl selector with top margin. Then decorate at will.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: