I am setting a table as a link. I have 2 solutions, one for FF, one for IE, but I am too newbie to resolve the two.
So here is the pertinent CSS I'm using for both solutions:
And here is the FF solution XHTML:
And here is the IE solution XHTML:
The resulting effect I'm looking for is to have two thumb links, side by side, which when hovered over, a caption appears below.
I am aware that there is code out there that can detect browsers, so that might work if someone could point me in that direction.
Oh, and if you ask: "Fool newbie, why are you using tables for layout? That's a no no," please give a better suggestion on how I can create the effect I desire. And my answer is: I couldn't figure out how to with just CSS
.
PS: I don't know Javascript, though Java solutions welcome.
So here is the pertinent CSS I'm using for both solutions:
Code:
table {
display: inline;
}
.thumbs {
color: #fff;
text-decoration: none;
}
a.thumbs:hover {
color: #9f9b75;
text-decoration: none;
text-size: .5em;
}
Code:
<a href="my_html1.html" class="thumbs">
<table>
<tr>
<td><img src="thumb1.jpg" alt="thumb1" /></td>
</tr>
<tr>
<td>Thumb1</td>
</tr>
</table>
</a>
</col>
<a href="my_html2.html" class="thumbs">
<table>
<tr>
<td><img src="thumb2.jpg" alt="thumb2" /></td>
</tr>
<tr>
<td>Thumb2</td>
</tr>
</table>
</a>
Code:
<a href="my_html1.html" class="thumbs">
<table>
<tr>
<td><a href="my_html1.html" class="thumbs"><img src="thumb1.jpg" alt="thumb1" /></a></td>
</tr>
<tr>
<td>Thumb1</td>
</tr>
</table>
</a>
</col>
<a href="my_html2.html" class="thumbs">
<table>
<tr>
<td><a href="my_html2.html" class="thumbs"><img src="thumb2.jpg" alt="thumb2" /></a></td>
</tr>
<tr>
<td>Thumb2</td>
</tr>
</table>
</a>
I am aware that there is code out there that can detect browsers, so that might work if someone could point me in that direction.
Oh, and if you ask: "Fool newbie, why are you using tables for layout? That's a no no," please give a better suggestion on how I can create the effect I desire. And my answer is: I couldn't figure out how to with just CSS
PS: I don't know Javascript, though Java solutions welcome.