I want to place triangle made by css on the tip of the submenu content box as visible in the below image .
.menuH
{
background: -moz-linear-gradient(top, #858585 0%, #808080 24%, #727272 49%, #5f5f5f 51%, #707070 79%, #939393 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#858585), color-stop(24%,#808080), color-stop(49%,#727272), color-stop(51%,#5f5f5f), color-stop(79%,#707070), color-stop(100%,#939393)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #858585 0%,#808080 24%,#727272 49%,#5f5f5f 51%,#707070 79%,#939393 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #858585 0%,#808080 24%,#727272 49%,#5f5f5f 51%,#707070 79%,#939393 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #858585 0%,#808080 24%,#727272 49%,#5f5f5f 51%,#707070 79%,#939393 100%); /* IE10+ */
background: linear-gradient(to bottom, #858585 0%,#808080 24%,#727272 49%,#5f5f5f 51%,#707070 79%,#939393 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#858585', endColorstr='#939393',GradientType=0 ); /* IE6-8 */
background-color:#d3d3d3;
height: 36px;
border: 1px solid #BBB;
position:fixed;/*! for IE htc*/
z-index:4;/*H2*/
font-family: Arial, Helvetica, sans-serif;
list-style: none;
padding: 0;
}
.menuH li
{
padding: 0;
/*margin: 0;
display: block; TODO: I am testing them if they can be removed. If can, remove them.*/
float: left;
height: 36px;
position: relative;/*move it into .menuH if you want submenu to be positioned relative to the whole menu instead of this li element*/
}
.menuH li:hover, .menuH li.onhover
{
background:#FFFFFF;
}
ul.menuH a
{
padding: 0 25px;
line-height: 36px; /*Note: keep this value the same as the height of .menuH and .menuH li */
font-size: 12px;
font-weight: bold;
color:#CCC;
display: block;
outline: 0;
text-decoration: none;
}
.menuH ul a.arrow
{
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid black;
}
.menuH a:hover
{
color:#666;
}
/*Used to align a top-level item to the right*/
.menuH .menuRight
{
float: right;
margin-right: 0px;
}
/*######sub level###########*/
ul.menuH ul
{
width:200px;
position: absolute;
left: -9999px;
border: 1px solid #DDD;
border-top: 0;
background: #FFF;
text-align: left;
list-style: none; margin: 0;
/*Following 1px(padding-right) will determine how much it is overlapped by the sub-sub-menu */
padding: 0 1px 10px 0;
}
.menuH li li
{
float: none;
white-space:nowrap;
height: 26px;
}
.menuH li li:hover, .menuH li li.onhover
{
background:#f7f7f7;
}
.menuH ul a
{
padding: 0 20px;
line-height: 26px;
font-size: 0.9em;
font-weight: normal;
color:#666;
text-align: left;
}
.menuH ul a:hover
{
color:#333;
}
.menuH li:hover ul, .menuH li.onhover ul
{
left: -1px;/*Use this property to change offset of the dropdown*/
top: auto;
}
.menuH li:hover .dropToLeft, .menuH li.onhover .dropToLeft
{
left: auto;
right: -1px;
top: auto;
}
.menuH ul ul
{
border-top: 1px solid #DDD;
}
.menuH li:hover ul ul, .menuH li:hover ul ul ul, .menuH li:hover ul ul ul ul,
.menuH li.onhover ul ul, .menuH li.onhover ul ul ul, .menuH li.onhover ul ul ul ul
{
left: -9999px;
top:0;
}
.menuH li li:hover ul, .menuH li li li:hover ul, .menuH li li li li:hover ul,
.menuH li li.onhover ul, .menuH li li li.onhover ul, .menuH li li li li.onhover ul
{
left: 200px;
}
/*####### special effects ##########*/
.decor1
{
-moz-border-radius: 3px; /* Firefox */
-webkit-border-radius: 3px; /* Safari and Chrome */
border-radius: 3px; /* Opera 10.5+, future browsers, and now also our behavior htc file */
-moz-box-shadow: 0px 1px 4px #eee; /* Firefox */
-webkit-box-shadow: 0px 1px 4px #eee; /* Safari and Chrome */
box-shadow: 0px 1px 4px #eee; /* Opera 10.5+, future browsers and IE6+ using our behavior htc file */
}
.menuH ul
{
-moz-border-radius: 0px 0px 4px 4px;
-webkit-border-radius: 0px 0px 4px 4px;
border-radius: 0px 0px 4px 4px;
-moz-box-shadow: 0px 6px 6px #CCC;
-webkit-box-shadow: 0px 6px 6px #CCC;
box-shadow: 0px 6px 6px #CCC;
/*for older IE browsers, the htc file fix will disable this feature when box-shadow was also applied.*/
filter:alpha(opacity=90);
/* Gradient background */
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#EEEEEE));
}
How to get triangle on the tip of submenu with this menu css? i have tried a lot but not getting triangle as show in above image in the question.
Edit:My Jsfiddle code is as below http://jsfiddle.net/8p9hu6hd/18/