Home › Forums › CSS › [Solved] Sub-menu and padding › Reply To: Sub-menu and padding
September 11, 2013 at 5:47 pm
#149777
jurotek
Participant
Try this
.navMain li ul{
position:absolute;
list-style:none;
text-align:center;
width:100%;
left:-40px;
top:16px;
font:16px ‘Cinzel’, serif;
font-weight:normal;
/* This is important for the show/hide CSS animation */
max-height:0px;
overflow:hidden;
-webkit-transition:max-height 0.4s linear;
-moz-transition:max-height 0.4s linear;
transition:max-height 0.4s linear;
}