Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

setting z index on before after pseudo classes

#parent {
    position: relative;
    z-index: 1;
}
#pseudo-parent {
    position: absolute;
    /* no z-index allowed */
}
#pseudo-parent:after {
    position: absolute;
    top:0;
    z-index: -1;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setting #index #pseudo #classes
ADD COMMENT
Topic
Name
9+1 =