I am looking to enhance my table by having the text expand and hover over the content with a white background. I have achieved the expand effect, but I am struggling to get the overflow to work properly. You can view the code in action on JsFiddle: JsFiddle
.logon-info-head {
width: 100%;
padding: 10px 0;
}
.logon-info-head > div, .logon-info > div{
display: inline-block;
width: 10%;
text-align: center;
}
.type{ width: 19%; }
.date-time {width: 20%; }
.country { width: 5%; }
.op-system { width: 18%; }
.browser { width: 12%; }
.ip-address { width: 9%; }
.logon .logon-info{
width: 100%;
padding: 5px 0;
}
.op-system, .browser{
text-overflow: ellipsis;
white-space: pre;
overflow: hidden;
vertical-align: bottom;
}
.op-system:hover, .browser:hover {
position: inherit;
background: white;
overflow: visible;
text-align:center;
padding: 0;
-webkit-transition: 1s;
-moz-transition: 1s;
-o-transition: 1s;
}
<div class="logon">
<div class="logon-info-head">
<div class="type">Connection type</div>
<div class="date-time">Connection date and time</div>
<div class="ip-address">IP address</div>
<div class="country">Country</div>
<div class="op-system">Operating system</div>
<div class="browser">Browser</div>
<div class="status">Status</div>
</div>
<div class="logon-info">
<div class="type">Web application user</div>
<div class="date-time">04.11.2016 13:21:25</div>
<div class="ip-address">10.195.2.98</div>
<div class="country">US</div>
<div class="op-system">Linux Ubuntu</div>
<div class="browser">Google Chrome</div>
<div class="status">Failed</div>
</div>
<div class="logon-info">
<div class="type">Web application user</div>
<div class="date-time">04.11.2016 13:21:25</div>
<div class="ip-address">10.195.2.98</div>
<
;div class="country">LV</div>
<div class="op-system">Windows XP Professional x64 Edition</div>
<div class="browser">Mozilla Firefox</div>
<div class="status">Success</div>
</div>
</div>