javascript - Add additional link to responsive navigation -


i created little responsive navigation works fine. want add link on right side of navigation "account".

my idea insert div ul think not w3c conform.

<div class="navigation"> <ul>     <li><a href="#">welcome</a></li>     <li><a href="#">me</a></li>     <li><a href="#">service</a></li>     <li><a href="#">contact</a></li>     <div class="account">account</div>  </ul> <a href="#" class="pull">navigation</a> 

here js fiddle demo

important want "account" on right side, not side side other navigation items. under 700px screen size should under contact li.

should this: http://www.directupload.net/file/d/3718/xneivu5d_png.htm

sorry bad english. hope can understand problem , maybe have idea solve this.

your .navigation li{ float: left;} css pulling <li> elements left.

add <li> tag "account" so, new account class.

<li class="account"><a href="#">account</a></li> 

and add css:

.account{     float: right !important; } 

updated js fiddle

also, you're going have adjust media query width menu collapse since account appearing on second line in small screen width before menu collapses.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -