html - css issue li in same line 50% of width -


http://liveweave.com/bnm1jj

i try put both li element in same line occupying 50% of width not them in same line

i not want use table structure .

unable put both li in same line why ??

ul.primary_nav{     background-color:#494949; }  ul.primary_nav li.selected{     background-color:#942f99;     color:#494949;    float:left; }  ul.primary_nav li{     display:inline-block;     padding-top:5px;padding-bottom:5px;     width:50%;  } ul.primary_nav li a{     display:block;     height:36px;     text-align:center;     color:#c5c5c5;     font-size:13px;     text-shadow:0px 1px 0px #2a2a2a;     text-decoration:none;     font-weight:bold; } ul.primary_nav li span.icon{     display:block;     margin:auto;     width:22px;     height:22px; } 

please tell missing

make following change:

ul.primary_nav li.selected{ background-color:#942f99; color:#494949; float:left; }  ul.primary_nav li{ display:inline-block; padding-top:5px;padding-bottom:5px; width:50%; width:50%; float:left; } 

notice float:left; them on same line.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -