I have a menu and some submenus, I need the submenu to align the width of it according to the larger text, because there are texts that can contain only 5 words but texts in the submenu that can contain 15 , then it needs to be aligned according to 15 so there is no such line break. I have the following CSS
nav > ul > li{display:inline;margin-left:57px;position:relative;}
nav > ul > li > a.active{color:#e6007e;border-bottom:3px #e6007e solid;padding-bottom:5px;}
nav > ul > li > a:hover{color:#e6007e;border-bottom:3px #e6007e solid;padding-bottom:5px;}
nav > ul > li > a{text-decoration: none;color:#a1a3a5;font-family: 'Quicksand', sans-serif;}
nav > ul > li > ul{
visibility: hidden;
position: absolute;
left: 0;
top: 23px;
padding: 4px 7px;
-webkit-transition: all 0.7s ease;
-moz-transition: all 0.7s ease;
-o-transition: all 0.7s ease;
-moz-opacity: 0.00;
opacity: 0.00;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha"(Opacity=0);
font-family: 'Quicksand', sans-serif;
}
nav > ul > li:hover > ul{
visibility: visible;
text-align: left;
background: #e6007e;
color:#fff;
font-family: 'Quicksand', sans-serif;
-moz-opacity: 1;
opacity: 1;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=100);
font-family: 'Quicksand', sans-serif;
}
nav > ul > li > ul > li > a{color:#fff;text-decoration:none;font-family: 'Quicksand', sans-serif;}
nav > ul > li > ul > li > a:hover{text-decoration: underline;}
nav > ul > li > ul > li{
display: block;
font-size: 12px;
margin-bottom: 5px;
width: 200px;
}