Skip to content

Commit 3fe916b

Browse files
author
Richard Feldman
committed
Add note about inline styles to README
1 parent c9b4645 commit 3fe916b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ body {
9494
color: #ccffaa;
9595
}
9696
```
97+
98+
You can also use elm-css for inline styles with the `asPairs` function, like so:
99+
100+
101+
styles = Css.asPairs >> Html.Attributes.style
102+
103+
button
104+
[ styles [ position absolute, left (px 5) ] ]
105+
[ text "Whee!" ]

0 commit comments

Comments
 (0)