You cannot do this with pure CSS, you will have to use javascript and check if your email lasts.
EDIT:
$(function(){
$('.email').hover(
function() {
var width = parseInt($(this).css('width'));
if (width > 50) {
$(this).addClass('overflowBg');
}
},
function() {
$(this).removeClass('overflowBg');
}
);
});
here is a working example, hope i understood correctly http://jsfiddle.net/mQA4L/25/
source
share