I found a problem with .sub_menucode left:-;and transform:translateX(-%);therefore I changed the position to relative and repositioned with the two codes above. This seemed to work, but now the two submenus that I don't have are the longer Side-By-Side. What they do is divided into a few centimeters from above :, Not sure what made this possible, Any help would be appreciated, thanks
JSFiddle appears when you hover over the gallery
.sub_menu {
display: none;
position:relative;
top:-60%;
left:-350%;
transform:translateX(-40%);
width: auto;
}
.sub_menu > li {
display:inline-block;
}
.sub_menu li a {
background:-webkit-linear-gradient(#77047e,#FF00FF);
background:-o-linear-gradient(#77047e,#FF00FF);
background:-moz-linear-gradient(#77047e,#FF00FF);
background:linear-gradient(#77047e,#FF00FF);
}
.sub_menu li a:hover {
background:#FF00FF;
top:1em;
}
source
share