T
28

I finally stopped using floats for my sidebar layouts last month.

Switched to a simple grid-template-areas setup, and it cut my code for a client's blog page in half. What's your go-to method for sidebars now?
2 comments

Log in to join the discussion

Log In
2 Comments
jade618
jade6182d ago
Grid is great, but Flexbox works better sometimes.
10
sean_dixon96
Grid-template-areas was a game changer for me too. I still use Flexbox for smaller bits inside those areas, like a button row, which is where I see @jade618's point. My old float-based sidebar code was a mess of clearfix helpers. It felt like fixing a pipe with duct tape when you finally find the proper wrench.
8