Dropdown input

Get the code

import Css
import Css.Global
import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes as Html


tab : Html msg
tab =
    Html.div
        [ Html.css
            [ Css.position Css.relative
            , Css.hover
                [ Css.Global.descendants
                    [ Css.Global.selector ".dropdown__content"
                        [ Css.display Css.block ]
                    ]
                ]
            ]
        ]
        [ Html.button
            []
            []
        , Html.div
            [ Html.class "dropdown__content"
            , Html.css
                [ Css.backgrounColor <| Css.hex "FFFFFF"
                , Css.position Css.absolute
                , Css.top <| Css.pct 100
                , Css.display Css.none
                , Css.marginTop <| Css.px 2
                , Css.width <| Css.px 250
                , Css.zIndex <| Css.int 9999
                ]
            ]
            []
        ]