Making the world a better place, one line of code at a time

Handling margins in CSS

Posted on Thursday, August 20, 2015

Writing accurate, maintainable CSS for large websites requires careful planning and meticulous attention to detail. One detail that can often slip through the gaps is proper spacing between elements. If a view has a number of independent, optional components laid out in a vertical (or horizontal) stack, it can be tricky to ensure that each piece has correct spacing around it in all configurations.

I’ve found that

Categories: css, code-quality Tweet this post

comments powered by Disqus