mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 110 forks source link

How to horizontally center a checkbox tick #269

Open Maldus512 opened 3 years ago

Maldus512 commented 3 years ago

Hello everyone, I'm trying to have a checkbox with its label placed above (thanks to Element.Input.labelAbove) and the ticked box itself horizontally centered below it. Unfortunately I don't seem to understand how achieve this and the checkbox remains aligned to the left or the right without budging.

Here is an Ellie snippet: https://ellie-app.com/ccqYH3cfNM3a1 Simply put, the checkbox should be aligned at the center of the page (same alignment as the label). Is this currently possible with Elm-UI?