I am trying to create some div (that should be buttons) that have rounded corner. I can get that to work using border-radius.htc or PIE.htc.
I position them using margin-top. The part of the button that flows over to the other div below is not visible, which it should be. Check screenshot:

.menu_buttons{
margin-top:45px;
overflow: visible;
margin-left: 10px;
width: 85px;
height: 3em;
vertical-align: middle;
float:left;
cursor: pointer;
text-align: center;
font: 0.9em Arial, Helvetica, sans-serif;
border-radius: 10px;
behavior: url(PIE.htc);
}
.diagonal:
.diagonal{
background-image: linear-gradient(left top, #CFD993 30%, #8DA900 68%);
background-image: linear-gradient(-45deg, #CFD993 30%, #8DA900 68%);
background-image: -o-linear-gradient(left top, #CFD993 30%, #8DA900 68%);
background-image: -moz-linear-gradient(-45deg left top, #CFD993 30%, #8DA900 68%);
background-image: -webkit-linear-gradient(135deg, #CFD993 30%, #8DA900 68%);
background-image: -ms-linear-gradient(left top, #CFD993 30%, #8DA900 68%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#CFD993', endColorstr='#8DA900', GradientType=1);
/*background: #CFD993;*/
background-image: -webkit-gradient(
linear,
left top,
right bottom,
color-stop(0.3, #CFD993),
color-stop(0.68, #8DA900)
);
}
Part of my html:
<div class="diagonal" id="section1">
<img alt="SMIC Service Management In the Cloud" src="/images/smic_small.png" id="smic">
<div class="link_menu">
<button class="menu_buttons ui-corner-all smic_green" id="overview">Overview</button>
<!--Some more <div....-->
<button class="menu_buttons ui-corner-all smic_green" id="usage_benchmark">SMICloud<br>usage<br>benchmark</button>
<a class="menu_items" id="get_smic">Get SMICloud</a>
<!--Some more <a....-->
<a class="menu_items" id="contact">Contact</a>
</div>
</div>
Adding following to .diagonal changes the look according to below screenshot:
position: relative;
z-index: -1;

When trying to add z-index -10 to the div below #section1, nothing happens.
I am totally stuck. How can I do this, creating a div with rounded corner that overflow to another div?
You should separate you definitions, to prevent odd behaviors and save debugging time.
Without the remaining
CSSfor the elements you’ve provided, you can see a working example, fully tested across all mentioned browsers, using your definitions for thediv.menu_buttons:See this Working Example!
CSS
EXAMPLE HTML
Download the border-radius.htc, and check out the CSS curved corner Demos and Page .
TESTED ON
Windows XP Profissional versão 2002 Service Pack 3
Windows 7 Home Edition Service Pack 1
Linux Ubuntu 12.04
EDITED
Related to OPs comment regarding the mandatory appliance of
CSSposition.Working example for the div with rounded corners with no
positionset!EDITED
The Final Fix after some chatting was the proper declaration of CSS
positionfor the elements wrapper and the elements then selves.The Fiddle Example with the correct
CSSdeclarations!