CSS/LESS/SASS Cookbook
Last updated
Last updated
Make ul
display: inline-block
in a text-align: center
div
For example you have:
And you want to adjust the margin under the root class .native
:
When &
is placed before a selector, it refers to the immediate parent.
When &
is placed after a selector, that selector becomes the root selector and &
represents the whole path and the whole path is repositioned under the root selector.
Could not use ::before because input doesn't have content
Position icon in input, and make it vertically center with top and translateY
Padding left on input for space of the icon
You can use &
:
Usages of &
: (also on my )