Wondering if it's possible to achieve this without JavaScript, but that would be the ideal scenario.
Here's a snapshot of how my page is structured:
____________________________
| TITLE | |This is a fixed header. I want the title
|----------------------------| |to be the name of the row and display it
| _______ _______ ___| |upon hovering over the image rows.
| | | | | | | |
| | | | | | | |
| |_______| |_______| |___| | [The boxes represent images.]
| _______ _______ ___| |
|__|_______|__|_______|__|___| |
header {
background: #FFFFFF;
position: fixed !important;
width: 100%;
height: 85px;
top: 0;
left: 0;
text-align: left;
font-size: 30px;
border: 1px solid black;
}
body {
padding-top: 100px;
}
r1n {
width: 200px;
height: 200px;
display: inline;
}
r1n:hover {
display: none
}
table tr:hover ~ header r1n {
display: none
}
<header>
<r1n>TITLE_NAME</r1n>
</header>
<body>
<table>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
</tr>
</table>
</body>
Can the fixed header in CSS display the row's name when hovered over by leveraging divs in the header?
EDIT:
@AndrewBone and @Dekel came up with CSS and JS solutions, respectively
EDIT^2: Check out all the responses for good CSS/JS/jQuery solutions.