z-index
property. There are two overlay utility classes available. These are the page-overlay
and the overlay
class. The page-overlay
differs from overlay
in that the former has a fixed
postion while the latter has an absolute
position. Whenever page-overlay
class is used on an element, the element's
size will spread entirely across the screen or web page but when an overlay
is used, it spreads only relative to its container which is
of course possible if the parent element has a relative
positioning. Since these elements are transparent by nature, they are not visible
unless a color is applied on them. Due to the fact that they are mostly used for pop-ups, they are mostly used with other untility classes which sets
a slightly transparent background on them. These classes are the ov-l
and ov-d
classes which sets a white or dark transparent color
on the overlay items. The ov-l
classes include ov-l1
, ov-l2
, ov-l5
and ov-l7
classes while the
ov-d
classes include ov-d1
, ov-d2
, ov-d5
and ov-d7
classes.
<div class="px-180 c-orange grid-center"> <span style="margin-top:-30px"> Hello in the back </span> <div> class="overlay ov-d5 grid-center c-white"> Hello in the front </div> </div>
ov-d5
will set the overlay darkness transparency just as shown below: