Responsive navbar

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        :root {
            font-size: 10px;
        }
        body {
            font-size: 1.6rem;
        }
        .cont {
            border: 2px solid black;
            display: flex;
        }
        .elements {
            margin: 0.5em;
            border: 2px solid blue;
            padding: 1em;
            font-size: 2.5vw;
            flex: 1;
        }
        .ele {
            flex: 4;
        }

    </style>
</head>
<body>
    <div class="cont">
       <div class="elements">Hello</div>
       <div class="elements">Bp</div>
       <div class="elements ele">Jello</div>
       <div class="elements">Bello</div>
       <div class="elements">Nello</div>
       <div class="elements">Kello</div>
    </div>
</body>
</html>


Comments

Popular posts from this blog

Javascript whole in one

3: HTML blog's visual content with source code

Bootstrap whole in one