HTML & CSS

Daily curated collection of articles and resources.

j-w-v.com

CSS’s Undersung Property: Box-Sizing

Ever since the introduction of the CSS box model (CSS Level 1), padding and borders have been considered an addition to the element they are properties of. For example, if you declare ...

css-tricks.com

Squeezy Stretchy Flexbox Nav

I saw an interesting take on off-canvas navigation the other day over on The New Tropic. It wasn’t the off-canvas part so much. It was how the elements within the nav took ...

jotform.com

How to Use CSS Animations Like a Pro

Create animation magic using keyframes, animation properties like timing, delay, play state, animation-count, iteration count, direction, fill mode and will-change. People seem to be fascinated by construction machines. Watching them is so ...

silvestarbistrovic.from.hr

CSS Sidebar Toggle

CSS sidebar toggle presented in this post is made with CSS only. These days accessibility is pretty important stuff and, because changing the state of the elements cannot be done without JavaScript, ...

freebiesupply.com

19 Mind-Blowing CodePen Experiments

CodePen, the playground for the most creative and talented front-end developers, has become a wonderful source of inspiration over the last few years. From CSS-only Pokémon to WebGL particle generators, you can ...

javascriptkicks.com

Is CSS Grid Layout the Answer?

We moved away from table layouts on the grounds that “content and structure should be completely separate from presentation!” And when it comes to making “grid” style layouts, that has caused us ...

theboldreport.net

CSS Tip: Use :not to Save Time and Lines of Code

Finally started making my life easier by using :not(:last-of-type) rather than overriding with a separate :last-of-type rule. Huzzah! Why didn’t I think of this earlier? This small thing saves so much time ...