CSS:Day 24

Chanak Karki
Jun 9, 2021
An illustration with the word offset
An illustration with the word offset

Today I learned about the offset property and this is what I used it for.

Applying offset on hover state
Applying offset on hover state

So what is going on their in the code is firstly a div was created, and it was styled to look like a box — after that using the hover pseudo class selector we set a hover state to the box.

--

--