I found a Stack problem, with a nice gallery solution. I used the code to make my own too. The structure working perfectly fine and I made it fully dynamic but I have a small problem with it.
Here is a Gallery solution from @Seika85:
PROBLEM: I cant get the start text replaced to the IMG1 in dl
I would like to replace the "Hover a thumbnail" to the first full size picture in the gallery. When you open the page the dl is empty and first get loaded only when you go over or click on a thumbnail.
Example:
I would like to get it loaded like this
instead of that one when i open the page.
The text arena code before get the first picture loaded:
dl.container:before {
content: "Hover a thumbnail";
position: absolute;
font: 48px Tahoma;
display: block;
top: 150px;
color: #d8d8d8;
text-shadow: 1px 1px 3px #666;
width: 100%;
text-align: center;}
I hope I can get a solution to make it work, Thanks.
Just add:
dt:first-child + dd {
opacity: 1;
}
To make the first one "active/visible" by default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.