html - css pseudo element is hidden by subsequent container with float property -


i have 2 columns

  1. tab navigation
  2. tab form

the tab navigation column has couple of links upon click open form in 2nd column

i'm setting tool-tip each link in tab navigation column below (.scss)

ul{   .tooltip{     // display: inline;     position: relative;     transition: 0.5s ease-in;     &:hover:after{       background: #333;       background: rgba(0,0,0,.8);       border-radius: 5px;       bottom: -5px;       color: #fff;       content: attr(title);       // left: 140%;       padding: 5px 15px;       position: absolute;       z-index: 1;       width: auto;     }     &:hover:before{       border: solid;       border-color: #333 transparent;       border-top: 6px solid transparent;       border-bottom: 6px solid transparent;       border-right: 6px solid #727272;       bottom: 5px;       content: "";       left: 125%;       position: absolute;       z-index: 99;     }   } } 

however , tooltips seem appear hidden form container despite giving them higher z-index.

enter image description here

the form column not have z-index , has float:left attribute set.

how have after element come on top of form column.

**edit: appears though width restricted width of tabnav parent **

enter image description here

the .tab-nav has following css (using bourbon neat)

  .tab-nav {     @include span-columns(4);     max-height: 70vh;     overflow-y: auto; } 

thanks,

the part of .tooltip hidden because parent has overflow-x: hidden.

either set position: absolute tooltip or overflow-x: visible .tab-nav


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -