DEV Community

Cover image for A css tip to remember
Aslam Shah
Aslam Shah

Posted on

A css tip to remember

Hey everyone! πŸ‘‹

Here is a quick tip you might find helpful while writing css.

You might be surprised how css can confuse you doing something very simple as positioning an element.

The order by which you use the properties for a css transform property can give you different results.

e.g Using a translate and rotate in a transform property together might give you different results based on what order you use them.

Checkout the codepen below:

Enjoy :)

Cover photo by bruce mars on Unsplash

Top comments (0)