A
A
Aleks Kirilov2020-01-23 20:19:41
Layout
Aleks Kirilov, 2020-01-23 20:19:41

Bootstrap 4 not working?

nav is located below the logo (although row, col-xl-8 is indicated), what to do, it seems that the whole code has been redirected ((

<!--<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:700|Roboto:700&display=swap" rel="stylesheet">-->
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:700|Roboto:700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
    <link rel="stylesheet" href="css/style.css">
    <title>Hello, world!</title>
  </head>
  <body>
    <header class="menu-bar">
      <div class="container">
        <div class="row">

          <div class="col-xl-2">
            <img src="img/logo.png" alt="logo" class="logo">
          </div>

          <div class="col-xl-8">
            <nav>
              <ul class="menu d-flex">
                <li class="menu__item"><a href="#">HOME</a></li>
                <li class="menu__item"><a href="#">ABOUT US</a></li>
                <li class="menu__item"><a href="#">WHMCS-BRIDGE</a></li>
                <li class="menu__item"><a href="#">HOSTING</a></li>
                <li class="menu__item"><a href="#">PAGES</a></li>
                <li class="menu__item"><a href="#">BLOG</a></li>
                <li class="menu__item"><a href="#">CONTACT US</a></li>
              </ul>
            </nav>
          </div>

        </div>
      </div>
    </header>
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    <script src="js/script.js"></script>
  </body>
</html>

<img src="https://habrastorage.org/webt/5e/29/d5/5e29d58141160525917150.png" alt="image"/>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anriko, 2020-01-23
@anriko

I followed the link, the file should be pulled up https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/cs...
nav styles do not go beyond the column redistribution?
do not look at the screen less than 1140?

Z
zorca, 2020-01-23
@zorca

.col-xl-is a column prefix for screen resolutions of 1200 pixels and wider. The screen layout designer must have at least 1920 pixels, or even more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question