view =
div [ css myStyle ]
[ -- a span tag with css is inserted before here,
-- creating a gap in the flex container
-- when using (justify-content: space-between)
-- because space is added between the span and
-- the div with text
div [] [ text "I have unwanted space on the left" ]
, div [] [ text "Other element" ]
]
myStyle =
[ displayFlex
, width (pct 100)
, justifyContent spaceBetween
]