I've some troubles with this dropdown. http://jsfiddle.net/vnr0rbuu/2/
If you use your trackpad or apple mouse, you have invisible scrollbar by default, and it works for it! But if you use another mouse or a PC for example, you have every scrollbars visible and here my li doesn't apply correctly my inline-block's style.
Any idea ?
My HTML :
<ul class="app-dropdown">
<li class="app">
<ul class="app-list">
<li class="app-name">
<p>Android Application With a real long name</p>
</li>
<li class="app-icon">
<img src=""/>
</li>
</ul>
</li>
<li class="app">
<ul class="app-list">
<li class="app-name">
<p>Fucking shit</p>
</li>
<li class="app-icon">
<img src=""/>
</li>
</ul>
</li>
</ul>
And my CSS :
.app-dropdown { display: block; position: absolute; min-width: 160px; max-width: 300px; max-height: 350px; margin: 15px; } .app { display: block; padding: 15px 25px; border-bottom: 1px solid #F4F4F4; vertical-align: middle; text-align: right; } .app-list { display: inline-block; } .app-name { padding-right: 5px; display: inline-block; vertical-align: middle; } .app-name p { /* Truncate long name */ max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .app-icon { display: inline-block; } .app-icon img { border-radius: 3px; display: inline-block; vertical-align: middle; }