HTML CSS examples for CSS Widget:Menu
Making an input field inside of menu (li) responsive
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .menu {<!--from www . j a v a2 s. com--> color:Chartreuse; width:100%; background:yellow; } .menu>ul { display:table; width:100%; padding:6px 0; margin:0; } .menu>ul>li { list-style:inside none; border-right:2px solid blue; padding:0 6px; display:table-cell; white-space:nowrap; } .menu>ul>li:last-child { overflow:hidden; border-right:none; text-align:right; } input { width:100%; max-width:401px; } </style> </head> <body> <div class="menu"> <ul> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem </li> <li>Lorem i</li> <li> <form method="get" class="search-form2" action="/"> <input type="search" placeholder="Search"> </form> </li> </ul> </div> </body> </html>