A
A
askhatCH2019-10-11 13:45:47
Layout
askhatCH, 2019-10-11 13:45:47

1 block creates 3 blocks?

Here I am, I created a line of code on a simple main.php page:

<!DOCTYPE html>
<html>
<head>
  <title>Нет</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.2.1/css/uikit.min.css" />
</head>
<body>
<nav class="uk-navbar-container uk-margin" uk-navbar>
    <div class="uk-navbar-left">

        <a class="uk-navbar-item uk-logo" href="#">Logo</a>

        <ul class="uk-navbar-nav">
            <li>
                <a href="#">
                    <span class="uk-icon uk-margin-small-right" uk-icon="icon: star"></span>
                    Features
                </a>
            </li>
        </ul>

        <div class="uk-navbar-item">
            <div>Some <a href="#">Link</a></div>
        </div>

        <div class="uk-navbar-item">
            <form action="javascript:void(0)">
                <input class="uk-input uk-form-width-small" type="text" placeholder="Input">
                <button class="uk-button uk-button-default">Button</button>
            </form>
        </div>

    </div>
</nav>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.2.1/js/uikit.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.2.1/js/uikit-icons.min.js"></script>
</body>
</html>

But, when I create a header (navbar) or another element, it is created 3 times.
For example like this:
NAVBAR
NAVBAR
NAVBAR
But there is only one NAVBAR.
Why? Tell me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Kirshin, 2019-10-11
@meowto16

Hi, check for unclosed tags and also by the validator. Perhaps this is your problem)
https://validator.w3.org/nu/#textarea

A
Alex-1917, 2019-10-11
@alex-1917

links to the UI-kit with an error
3.2.1 version are not yet in nature !!!

spoiler
https://cdnjs.cloudflare.com/ajax/libs/uikit/3.2.0...
https://cdnjs.cloudflare.com/ajax/libs/uikit/3.2.0...

You unfasten the loot for use there, and run here with questions ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question