Forums
View unanswered posts | View active topics It is currently Sun May 19, 2013 9:21 pm



Reply to topic  [ 2 posts ] 
 nested div overflows square borders of parent rounded border 
Author Message

Joined: Mon Feb 06, 2012 11:52 pm
Posts: 1
Post nested div overflows square borders of parent rounded border
Is there a trick or something simple I may be missing for forcing a nested div's square borders to be hidden within a parent's div rounded borders?
I.E.
div.parent {
overflow: hidden;
z-index: 100;
border-radius: 16px;
background: url('some-image.png') repeat-x;
position: relative;
behavior: url(/PIE.htc);
width: 100px;
height: 20px;
}
div.parent div {
z-index: 1;
position: absolute;
top: 0;
left: 0;
background: url('some-other-image.png') repeat.x;
width: 50px;
height: 20px;
}
This happens in I.E. 8 and below as I.E. 9 supports the border-radius and follow the overflow: hidden; on the rounded parts of the border.
In this scenario the parent div will have rounded borders just fine, owever the child div will overflow the square borders on the left. The child div will however hide any other overflow other than overflow going over the rounded borders of the parent.


Tue Feb 07, 2012 12:03 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: nested div overflows square borders of parent rounded bo
Nope, this is a limitation that is impossible to work around unfortunately. IE doesn't allow us to clip content to non-rectangular shapes.


Tue Feb 07, 2012 11:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 4 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.