Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

CSS reset for minimalists

January 9, 2017
1 min read
16490 views

CSS resets help enforce style consistency across different browsers by providing a clean slate for styling elements. Resources like Normalize, et al., do an excellent job at managing this. For a couple of years now, I’ve opted to go with a minimalist approach to resets and found it to be...

  • CSS

Add line height to body

December 26, 2016
1 min read
4731 views

If you’ve been adding line height to each textual element separately, e.g., <h*>, <p>, etc., this is a helpful tip that you’ll want to try: add line height to the body selector instead. body { line-height: 1.5; } Now all textual elements will have a consistent line height that is...

  • CSS

Zero-based date, Christmas, and emoji

December 21, 2016
1 min read
1727 views

Here’s a quick tip if you’re starting out with JavaScript: which of the following values passed to the getMonth() and getDate() methods will print December 25? 11,24 11,25 12,25 If you answered 11,25, have some egg nog and an extra piece of ribbon candy, you’re doing awesome. Zero-based counting JavaScript...

  • JavaScript
Newer posts Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.