@CreativeLogic
Posted
Hi. I just did this challenge myself. To get the button centered there is a trick using absolute and relative positioning.
The way I tackled it was like so: I made a div container and put the button icon inside it. I built this container to resemble the actual button. To center the container, you make it position: absolute and anchor it to the card by making the card position: relative.
Then you set the button container to left: 0, right: 0 and margin: auto. The combination of these properties centers it. Then I made the container flex to use the centering properties on the icon to center the dice icon within the container.
Marked as helpful
@Vanillatte68
Posted
@CreativeLogic Hello. I've implemented the button container and use absolute and relative position immediately, it works well with my code. It was really helpful. Thank you for the feedback.