/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Thumbnail Gallery Layout Help?

Hey guys…

Here’s the trouble I’m having…

I have a thumbnail gallery of 9 thumbnails, but the client wants each of the thumbnails to have rounded corners.

I was thinking that I could create a photoshop PNG image with each of the thumbnail rounded windows punched out (transparent) and set the z-index of this DIV to be on TOP of all the actual images. That way the corners would all appear to be rounded because of the overlay. Unfortunately this is not working at all….its like the overlay doesn’t even exist.

Any ideas about how this can be done another way? Maybe I’m just confused about how the z-index should be working??

Thanks so much for taking a look at this…

HTML:
<div id=”thumbnail_container”>
<img src=”thumbnail_background.png” width=”450px” height=”396px” />
<div class=”thumbnails”><img src=”images/plane_thumb.jpg” height=”140px” width=”140px” /></div>
</div>

CSS:
#thumbnail_container{width: 450px; height: 396px; float: left; margin-left: 25px; z-index: 10}
.thumbnails {width: 140px; height: 140px; float: left; padding: 10px; z-index: -10}

I attached a file of what the client wants the gallery to look like. The blue squares are where the thumbnail images would go…

[upl-file uuid=ebee76f3-3ef4-4c6e-8d7e-0d39e85b0fc2 size=48kB]thumb_gallery.jpg[/upl-file]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@KDLADec 10.2007 — Z-index only works on elements that have been positioned (eg position:absolute?.
Copy linkTweet thisAlerts:
@joseph_liuauthorDec 10.2007 — yup that was it.

Thanks!
×

Success!

Help @joseph_liu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...