0

I am attempting to make a thumnail viewer whereby when you roll your mouse over the thumbnail, you get a thumbnail sized view of a larger email. As you move around the thumbnail youll see various parts of the larger pictures.

You can see this here by rolling over the last (green) image.

When you roll over I swap images between the low res thumbnail and a higher res version. For some reason this larger image is no longer bound by the overflow: hidden property of the parent. What do I have to do to get this to work?

Update

The position: relative property is currently set on the parent above the .artwork container that currently provides the overflow: hidden. Adding overflow: hidden to the top level container works correctly but seems to negate the rounded border effect...

0

1 Answer 1

2

use position:relative on your parent block.

This is because our child div is absolute positioned. But when you use absolute position, it refers to the first positionned parent. The first positionned parent is the first one to have a position: relative (or absolute) property

for the border radius problem, this is a firefox and chrome bug you can fix by using hacks. See it here :

CSS3 border-radius clipping issues

EDIT : To summarize :

add position: relative to the div artwork. then add your border radius to the "a" parent tag

Sign up to request clarification or add additional context in comments.

8 Comments

See my update.. Doing that prevents the rounded corners from rendering
look at my post again and look : stackoverflow.com/questions/3248734/…
Try adding position: relative to the immediate parent of the image.. The image then escapes the parent's box ignoring the overflow property
I've updated my post, I have success when adding the border-radius on the "a" tag and position relative to the artwork div
I can't get this working Jerome - would you mind posting the code? Thanks
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.