2

I have two divs with border-radius set to max to make them circles. I have a header div in the first circle with a different background-color and overflow:hidden so that it looks like the top portion of the circle is a different color.

The second circle I want to be underneath the first, basically peaking out. The problem is, as soon as I set position:relative (or anything else), the overflow on the header background color for Chrome and Safari.

This should be doable. Help? Thoughts?

JSW189
  • 6,267
  • 11
  • 44
  • 72
Elijah Murray
  • 2,132
  • 5
  • 30
  • 43

2 Answers2

0

I guess this is kinda' what you're looking for.

http://codepen.io/AntonNiklasson/pen/kxwFB

Or am I missing something?

AntonNiklasson
  • 1,719
  • 1
  • 15
  • 28
0

Just try placing another DIV round the large circle and setting the position:relative and z-index on that.

Billy Moat
  • 20,792
  • 7
  • 45
  • 37
  • Success! Thanks a lot! If anyone else is doing this, make sure both the container element and the overlapped element are set with a position, or z-index doesn't work. – Elijah Murray Dec 11 '12 at 17:58