Coded up a small trick to toggle a gallery's description field's visibility.
Demo - http://www.pbase.com/srijith/madurodam
HOWTO - http://pbasewiki.srijith.net/howto/toggle_description
Tested with Firefox and IE 6
Board index ‹ PBase ‹ HTML and Style Sheets ‹ Toggling gallery description visibility
olafdk wrote:Here's what I'd really like: No text visible under the thumbs, until you mouse over them. I think the text is distracting and would love for my galleries to show without the titles. I know, I can just leave my photos without titles, but sometimes I want them...
td.thumbnail{
vertical-align:middle;
width: 200px;
height: 200px;
color:rgb(26,26,26)
}
td.thumbnail:hover{
color:rgb(255,255,255)
}
img.thumbnail{
margin-bottom:6px;
border: rgb(0,0,0) 1px solid
}
olafdk wrote:I found a way to do what I wanted:
That seems to be the easiest way to do it. Anything that relies on Javascript etc, will get messy because there is no easy way to identify the exact image on which the mouse is hovering since unlike the description, the thumbnail tags are not unique.
.techinfo{
color:rgb(26,26,26);
font-size:8pt;
padding: 20px
}
.techinfo a:link{
color:rgb(26,26,26);
font-size:8pt
}
.techinfo a:hover{
color:rgb(255,255,255);
font-size:8pt
}
srijith wrote:Olaf, nice work. I personally would not use this 'trick' because as a viewer I like to be presented with all possible information than having to find it by accident. In this case, I like to have an idea what I am looking at before having to mouse-over the image. For that matter I would not even intuitively know that I need to mouse-over to get the details.
Board index ‹ PBase ‹ HTML and Style Sheets ‹ Toggling gallery description visibility
Users browsing this forum: ClaudeBot and 1 guest