html - Navigation bar displaying weirdly after adding new transition -


so added animation navigation bar @ repo.itechy21.com , made drop down text push right side of drop down when want centred. relevant css attached below (along html) css:

/* start nav bar*/ #header {     height: 100px;     margin-left: auto;     margin-right: auto;     text-align: center; } #content {     margin-left: auto;     margin-right: auto;     padding: 20px;     text-align: center } #menu, #menu nav {     margin:0 auto;     padding:0;     position: center;     text-align: center } #menu {     display: inline-block;     list-style:none;     background-color: #98bf21;     border-radius: 10px;     text-align: center } #menu li {     float: left;     position: relative;     list-style: none;     text-align: center } #menu > li:hover > ul {     display:block;     background-color: #98bf21;     border-bottom-right-radius: 10px;     border-bottom-left-radius: 10px;     visibility:visible;     opacity:1;     filter:alpha(opacity=100); } #menu > li > ul {     /*animation control*/     visibility: hidden;     opacity: 0;     filter:alpha(opacity=0);     -webkit-transition:.5s ease;     -moz-transition:.5s ease;     -o-transition:.5s ease;     transition:.5s ease;     position: relative; } #menu li {     display: inline-block;     width: 120px;     font-weight: bold;     color: #ffffff;     text-align: center;     padding: 4px;     text-decoration: none;     text-transform: uppercase;     /*animation control*/     -o-transition:color .2s ease-out;     -ms-transition:color .2s ease-out;     -moz-transition:color .2s ease-out;     -webkit-transition:color .2s ease-out; } #menu li a:hover {     color: black;     -o-transition:color .5s ease-in;     -ms-transition:color .5s ease-in;     -moz-transition:color .5s ease-in;     -webkit-transition:color .5s ease-in; } /*end of nav bar css*/  

html navbar layout (minus links):

<ul id="menu">     <li><a href="">home</a></li>     <li><a href="#">modules</a>         <ul>             <li><a href="#">remove retina</a></li>             <li><a href="#">device information</a></li>             <li><a href="#">syslogd fixer</a></li>         </ul>     </li>     <li><a href="#">toolkit</a></li>     <li><a href="#">donate</a></li>     <li><a href="#">blog</a></li> </ul> 

any suggestions on how fix , align used be?

i hope help.

/* start nav bar*/ #header {     height: 100px;     margin-left: auto;     margin-right: auto;     text-align: center; } #content {     margin-left: auto;     margin-right: auto;     padding: 20px;     text-align: center } #menu, #menu nav {     margin:0 auto;     padding:0;     position: center;     text-align: center } #menu {     display: inline-block;     list-style:none;     height: auto;     width: auto;     background-color: #98bf21;     border-radius: 10px;     text-align: center;     -webkit-transition:.5s ease;     -moz-transition:.5s ease;     -o-transition:.5s ease;     transition:.5s ease; } #menu > li {     float: left;     position: relative;     display: inline-block;     width: 120px;     list-style: none;     text-align: center; } #menu ul > li {     display: block;     width: 100%;     list-style: none;     text-align: center; } #menu > li:hover > ul {     display:block;     background-color: #98bf21;     border-bottom-right-radius: 10px;     border-bottom-left-radius: 10px;     visibility:visible;     opacity:1;     filter:alpha(opacity=100); } #menu > li > ul {     /*animation control*/     display:none;     width: 120px;     height: auto;     margin: 10px 0 0 0;     opacity: 0;     z-index: 10;     filter:alpha(opacity=0);     -webkit-transition:.5s ease;     -moz-transition:.5s ease;     -o-transition:.5s ease;     transition:.5s ease; } #menu li {     font-weight: bold;     color: #ffffff;     text-align: center;     padding: 4px;     text-decoration: none;     text-transform: uppercase;     /*animation control*/     -o-transition:color .2s ease-out;     -ms-transition:color .2s ease-out;     -moz-transition:color .2s ease-out;     -webkit-transition:color .2s ease-out; } #menu li a:hover {     color: black;     -o-transition:color .5s ease-in;     -ms-transition:color .5s ease-in;     -moz-transition:color .5s ease-in;     -webkit-transition:color .5s ease-in; } /*end of nav bar css*/  

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -