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; }
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
Post a Comment