Skip to content
Advertisement

Can’t move button with CSS

I have wanted to make a button that is aligned horizontally underneath the text that says “Bubbles”. I have tried flex already and in the snippet I try it with transform but regardless of what I try I wont get the desired outcome. So please Help!

Whole code

JavaScript
JavaScript

Advertisement

Answer

Since you’ve got the container class but aren’t actually using it, we can just make it a flex column and put both elements inside of it

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement