Forums
View unanswered posts | View active topics It is currently Thu May 23, 2013 3:09 am



Reply to topic  [ 3 posts ] 
 div do not masks children? 
Author Message

Joined: Mon Mar 21, 2011 9:49 am
Posts: 4
Post div do not masks children?
Hi. I need to apply PIE with border radius to a div that contains 2 more elements.

Code:
<div id="box">
   <div></div>
   <img src=".." width=".." height=".." />
</div>


#box has radius applied to corners. but the div and img children appear above the corners, while the corners should 'mask' the children instead.

How can I solve?
In other browsers I just put an overflow:hidden, but this doesn't work in IE7/8.
Thank you.


Mon Jan 16, 2012 8:42 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: div do not masks children?
This can't be done. You'll have to give the children a matching radius.


Mon Jan 16, 2012 10:29 am
Profile

Joined: Mon Mar 21, 2011 9:49 am
Posts: 4
Post Re: div do not masks children?
ok thank you. Anyway other strange things happen like the container do not always retain the real dimensions (but for example only if I refresh the page being the page scrolled). Things like that. Don't know.

There are also other strange behaviours anyway in IE7/8. I can't get it work for example for images inside LI elements, or even for LI elements sometimes.. Don't know, very strange. I played a bit with the position:relative thing but nada. No solutions.

I ended up using PIE only for really simple things and another js+images solution developed by myself.. :(

Anyway thank you.


Mon Jan 16, 2012 10:40 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.