fixed

view source

Fix an element's position and assign its coordinates, all in one line of SCSS.

use-name
scut-fixed
type
mixin, with default-values placeholder
arguments
  1. $coordinates
    default
    0 n n 0

    See information about scut-coords.

Notice the example in the bottom right.

example

HTML

<div>See the bottom right</div><div class="eg-fixed">Here's your example.</div>

SCSS

.eg-fixed {
  @include scut-fixed(n 2em 1em n);
}

Result

See the bottom right
Here's your example.