I use pure elm-html - the style is placed as an Attribute in the view 
function

. . . 
p [navstyle] [text (String.join " " m.opens) ]
. . .

while the Style itself is defined elsewhere (I put all of them in a file 
called Styles.elm)

navstyle = style [("position","absolute")
                 ,("left", "0px")
                 ,("width","10cm")
                 ,("backgroundColor","Beige")
                 ,("fontFamily","Calibri,serif")
                 ,("cursor","pointer")
                 ]

I have used this to build in Elm quite a nice collapsing/expanding TreeMenu 
navigation menu, which is something that CSS does rather well.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to