HTML CSS examples for CSS Widget:Nav bar alignment
Left aligned navbar with title
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="https://mincss.com/entireframework.min.css"> <style id="compiled-css" type="text/css"> .leftalign {<!-- ww w . j a v a2 s . c om--> float:left; } .rightalign { float:right; } .leftalign, .rightalign { line-height:36px; } </style> </head> <body> <nav class="nav" tabindex="-1" onclick="this.focus()"> <div class="container"> <a class="pagename current leftalign" href="#">Lorem ipsum d</a> <a class="leftalign" href="#">Lore</a> <a class="leftalign" href="#">Lore</a> <a href="#" class="rightalign">Lore</a> </div> </nav> <button class="btn-close btn btn-sm">L</button> </body> </html>