I applied the background color to the links in my list of countries. In general, this works well:

However, for countries with a longer name, this does not work very well.

I try to make yellow color overflow everything and show the full name of the country.
HTML:
<div class="flagList"> <div class="flagColumn"> ... </div> <div class="flagColumn"> ... </div> <div class="flagColumn"> ... </div> ... </div>
CSS
.flagColumn { width: 33%; float: left; border:0px solid; height:1.6em; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; z-index: 1; position:relative; } .flagColumn:hover { overflow:visible; z-index: 2; position:relative; display: inline; background-color:yellow; }
html background-color css css3 overflow
Ned
source share