You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The z-index property isn't currently supported. We're trying to figure out the best API for layered elements, and you can help! Please submit your use cases to [issue #46](https://github.com/mdgriffith/style-elements/issues/46) so we can find the best solution for everyone.
6
+
7
+
While you're waiting, you can use the [`Style.prop` function](http://package.elm-lang.org/packages/mdgriffith/style-elements/latest/Style#prop) to get what you need:
8
+
9
+
```elm
10
+
zIndex:Int->Propertyclassvariation
11
+
zIndex n =
12
+
prop "z-index"(toString n)
13
+
```
14
+
15
+
## How do I set margins?
16
+
17
+
Supporting both margins and padding make consistent layouts difficult, so style-elements only uses padding.
18
+
19
+
If you need spacing between children in a layout, use [`Element.Attributes.spacing`](http://package.elm-lang.org/packages/mdgriffith/style-elements/latest/Element-Attributes#spacing).
20
+
21
+
To set more space around a single element, wrap the element in a spacer a set padding. This is more explicit and you can predict exactly how your element will be laid out.
0 commit comments