Interesting! I would love to see a codepen demo if you are willing to create one.
Take a look at this pen: codepen.io/joaoskr/pen/eYmPNBG
If you remove this properties from domain-toggle class, you'll see what i said about alignment: position: absolute; left: 50%; transform: translateX(-50%);
That's a nice use case for position alignment. I think it would be difficult to achieve that result with any other method.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Interesting! I would love to see a codepen demo if you are willing to create one.
Take a look at this pen: codepen.io/joaoskr/pen/eYmPNBG
If you remove this properties from domain-toggle class, you'll see what i said about alignment:
position: absolute;
left: 50%;
transform: translateX(-50%);
That's a nice use case for position alignment. I think it would be difficult to achieve that result with any other method.