vertical line navigation bar

Solutions on MaxInterview for vertical line navigation bar by the best coders in the world

showing results for - "vertical line navigation bar"
Alexander
08 Jan 2018
1/*navbar properties */
2.navbar .brand {
3    max-height: 40px;
4    overflow: visible;
5    padding-top: 0;
6    padding-bottom: 0;
7}
8.navbar a.navbar-brand {
9    padding: 9px 15px 8px;
10}
11.navbar{
12    font-family: young;
13    clear: both;
14}
15.navbar a{
16    color: #515254;
17}
18.navbar-nav{
19    font-size: 20px;
20    padding-top: 20px;
21}
22#bs-example-navbar-collapse-1{
23    float: left;
24}
25.nav > li > a:hover, .nav > li > a:focus{
26    color: #007f3d;
27    background: none;
28}
29.navbar-toggle .icon-bar {
30    background-color: black;
31}
32
33.navbar-toggle {
34    border: 1px solid #000;
35}
36.verticalLine {
37    border-left: thick solid #ff0000;
38}
39hr.vertical
40{
41    color: black;
42    width: 0px;
43    height: 100%; /* or height in PX */
44}
45/*navbar properties */
46
Dorothy
21 Apr 2017
1<!DOCTYPE HTML>
2<html>
3<head>
4
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7    <title>Double Double</title>
8    <link rel="shortcut icon"  href="favicon.ico">
9    <link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700%7CRoboto+Slab:400,100' rel='stylesheet' type='text/css' />
10    <link href="css/font-awesome.min.css" rel="stylesheet">
11    <link href="css/bootstrap.min.css" rel="stylesheet">
12    <link href="css/double.css" rel="stylesheet">
13</head>
14
15<body>
16<nav class="navbar" role="navigation">
17    <div class="container">
18        <!-- Brand and toggle get grouped for better mobile display -->
19        <div style="margin: auto;display: table;">
20            <div class="navbar-header">
21                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
22                    <span class="sr-only">Toggle navigation</span>
23                    <span class="icon-bar"></span>
24                    <span class="icon-bar"></span>
25                    <span class="icon-bar"></span>
26                </button>
27            </div>
28
29            <!-- Collect the nav links, forms, and other content for toggling -->
30            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
31                <ul class="nav navbar-nav">
32                    <li><a href="#">Home</a></li>
33                    <hr class="vertical"/>
34                    <li><a href="#">Deals</a></li>
35                    <li><a href="#">Pickup Deals</a></li>
36                    <li><a href="#">Menu</a></li>
37                    <li><a href="#">About Us</a></li>
38                    <li><a href="#">Contact Us</a></li>
39                </ul>
40            </div><!-- /.navbar-collapse -->
41        </div>
42    </div>
43</nav>
44</body>
45</html>
46