This is an example of the HTML structure:
<tr class="row-1 row-first">
<td class="col-1 col-first">
<div class="views-field views-field-field-logo-image"></div>
<div class="views-field views-field-field-logo-title"></div>
<td class="col-2">
<td class="col-3 col-last">
The ".views-field views-field-field-logo-title" is a title that will only appear when hovering over the table.
Below is the CSS for these elements:
.view-clone-of-logo td {
width:230px;
float:left;
margin-right:30px;
}
.views-field-field-logo-title {
background: none repeat scroll 0 0 #B2D433;
color: #FFFFFF;
font-size: 13px;
height: 130px;
margin: -5000px 0 0;
opacity: 0.9;
padding-left: 10px;
padding-top: 20px;
position: absolute;
width: 220px;
z-index: 10;
}
I have successfully implemented code to display the title on hover:
(function ($) {
$(document).ready(function() {
$('.view-clone-of-logo td').hover(function() {
$('.view-clone-of-logo .views-field-field-logo-title').css("margin-top", "-155px");
}, function() {
$('.view-clone-of-logo .views-field-field-logo-title').css("margin-top", "-5000px");
});
});
}(jQuery));
However, when I hover, all titles are displaying over the images. How can I make sure only the title from a specific column is displayed?