DEV Community

Discussion on: A little bit of CSS micro-interactions and some cards

Collapse
 
mathieuhuot profile image
Mathieu Huot

Thank you for this very interesting code. I'm a bit curious, why use text-transform: uppercase; instead of writing uppercase text in the h2 element?

Collapse
 
gabe profile image
Gabe

Ah that’s because I ripped my examples from the working code that’s on my site. This is a VuePress site and that h2 element is a template part that is programmatically filled in, so I made sure to include CSS to auto uppercase in case I ever forgot to uppercase my titles when I write them in my markdown files. Bit sloppy of me to leave that in for the article.

Collapse
 
mathieuhuot profile image
Mathieu Huot

Well, it's a good way to enforce consistency. 🙂