Info box inside overflow:hidden container - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Info box inside overflow:hidden container

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.outertable {<!--from  w  ww  . j a v  a  2s .c  om-->
   box-shadow:4px 4px 8px -4px Chartreuse;
   display:block;
   overflow-x:auto !important;
}

div.table {
   display:table;
   width:100%;
   background-color:yellow;
   border-radius:11px;
}

div.tr {
   display:table-row;
}

div.maintr {
   display:table-row;
}

.maintr .td {
   padding:16px 6px;
}

div.td {
   display:table-cell;
   padding:11px 6px;
   text-align:center;
   vertical-align:middle;
}

.info {
   display:inline;
}

.info:hover::before {
   background:blue;
   background:pink;
   border-radius:6px;
   color:OrangeRed;
   content:attr(data-tooltip);
   padding:16px 26px;
   position:absolute;
   z-index:1000;
   width:201px;
   transform:translateY(calc(-100% - 13px));
}

.info:hover::after {
   border:solid;
   border-color:grey;
   border-width:13px 13px 0 13px;
   content:"";
   position:absolute;
   z-index:100;
   transform:translateX(-51%) translateY(-100%)
}
</style> 
 </head> 
 <body> 
  <br> 
  <br> 
  <br> 
  <br> 
  <br> 
  <br> 
  <div class="outertable"> 
   <div class="table offerstyle"> 
    <div class="tr"> 
     <div class="td fixinfonooverflow"></div> 
     <div class="td"></div> 
     <div class="td"></div> 
     <div class="td"></div> 
     <div class="td"></div> 
    </div> 
    <div class="tr"> 
     <div class="td"> 
      <img class="" data-original="https://www.java2s.com/style/demo/Firefox.png" title="" alt="" src="https://www.java2s.com/style/demo/Firefox.png" style=""> 
     </div> 
     <div class="td"> 
      <a href="/landingpage.html" target="_blank">Lorem ips</a> 
     </div> 
     <div class="td"> 
      <div class="nonewline more_info" title="4.8 von 5 Sternen und 5 Bewertungen"> 
       <i class="fa fa-star ratingtwo" aria-hidden="true"></i> 
       <i class="fa fa-star ratingtwo" aria-hidden="true"></i> 
       <i class="fa fa-star ratingtwo" aria-hidden="true"></i> 
       <i class="fa fa-star ratingtwo" aria-hidden="true"></i> 
       <i class="fa fa-star-half-o ratingtwo" aria-hidden="true"></i> 
      </div> 
     </div> 
     <div class="td"> 
      <a class="info" data-tooltip="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque a est ut justo interdum efficitur at id tortor. Cras lacinia, sapien sit amet suscipit sodales, mi velit bibendum risus, at dictum ligula mauris vel dui."> <i class="fa fa-info-circle" aria-hidden="true"></i>Lorem ipsum dolor sit</a> 
     </div> 
     <div class="td">
       Lorem 
      <br>Lorem i 
      <br>Lorem i 
      <br> 
     </div> 
    </div> 
    <div class="tr"> 
     <div class="td fixinfonooverflow"></div> 
     <div class="td"></div> 
     <div class="td"></div> 
     <div class="td"></div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials