Skip to content

Commit

Permalink
Move background-image starting point (mdn#17688)
Browse files Browse the repository at this point in the history
* Move background-image starting point

The element is not being moved at all. Only the starting point is moved. This basically hides the images in the left.

* Correct face of code

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
anewman15 and teoli2003 authored Jun 27, 2022
1 parent f171900 commit 8f4be3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A background position can be added either as two x, y values after the {{cssxref
}
```

This would move the element with the ID 'btn1' 20 pixels to the left and the element with the ID 'btn2' 40 pixels to the left (assuming they have the class `toolbtn` assigned and are affected by the image rule above).
This would slide the starting point of the background image for the element with the ID `btn1` 20 pixels to the left and the element with the ID `btn2` 40 pixels to the left (assuming they have the class `toolbtn` assigned and are affected by the image rule above).

Similarly, you can also make hover states with:

Expand Down

0 comments on commit 8f4be3d

Please sign in to comment.