A
A
Andrey PINEAPPLE2016-12-15 07:14:34
HTML
Andrey PINEAPPLE, 2016-12-15 07:14:34

How to rearrange the navigation bar vertically to the left?

<header>
    <nav class="navbar navbar-inverse navbar-static-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#responsive-menu">
                    <span class="sr-only">open navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html"><b>Football clubs</b></a>
            </div>
            <div class="collapse navbar-collapse" id="responsive-menu">
                <ul class="nav navbar-nav">
                    <li><a href="index.html">Home</a></li>
                    <li><a href="about.html">About</a></li>
                </ul>
                <form class="navbar-form navbar-right">
                    <div class="form-group has-feedback" id="loginDiv">
                        <input type="text" class="form-control" placeholder="LOGIN" name="login">
                        <span id="loginSpan" class="glyphicon form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback" id="passwordDiv">
                        <input type="password" class="form-control" placeholder="PASSWORD" name="password">
                        <span id="passwordSpan" class="glyphicon form-control-feedback"></span>
                    </div>
                    <button type="button" class="btn btn-success" onclick="loginForm(this.form)">ENTER</button>
                </form>
            </div>
        </div>
    </nav>
</header>

There is a navigation bar code attached to the top. How to rearrange it to the left in the form of a list?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Golyagin, 2016-12-15
@AndreyHudz90

Try like this:

<nav class="navmenu navbar navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#responsive-menu">
                    <span class="sr-only">open navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html"><b>Football clubs</b></a>
            </div>
            <div class="collapse navbar-collapse" id="responsive-menu">
                <ul class="nav navmenu-nav">
                    <li><a href="index.html">Home</a></li>
                    <li><a href="about.html">About</a></li>
                </ul>
                <form class="navbar-form navbar-right">
                    <div class="form-group has-feedback" id="loginDiv">
                        <input type="text" class="form-control" placeholder="LOGIN" name="login">
                        <span id="loginSpan" class="glyphicon form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback" id="passwordDiv">
                        <input type="password" class="form-control" placeholder="PASSWORD" name="password">
                        <span id="passwordSpan" class="glyphicon form-control-feedback"></span>
                    </div>
                    <button type="button" class="btn btn-success" onclick="loginForm(this.form)">ENTER</button>
                </form>
            </div>
        </div>
    </nav>

.navmenu {
width: 200px;
}

Here is a typical example of a side menu:
<nav class="navmenu navmenu-default" role="navigation">
  <a class="navmenu-brand" href="#">Название</a>
  <ul class="nav navmenu-nav">
    <li class="active"><a href="#">Пункт 1</a></li>
    <li><a href="#">Пункт 2</a></li>
    <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Пункт 3 <b class="caret"></b></a>
      <ul class="dropdown-menu navmenu-nav" role="menu">
        <li><a href="#">Пункт 3.1</a></li>
        <li><a href="#">Пункт 3.2</a></li>
        <li><a href="#">Пункт 3.3</a></li>
        <li><a href="#">Пункт 3.4</a></li>
      </ul>
    </li>
  </ul>
</nav>

.navmenu {
width: 200px;
}

I
iBird Rose, 2016-12-15
@iiiBird

do not use bootstrap and make it yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question