more responsive for smaller screens

collapsable navbar
This commit is contained in:
lukas-heiligenbrunner 2020-03-16 19:14:02 +01:00
parent 362cb28663
commit f8c2114358

View File

@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lukas Heiligenbrunner</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
@ -22,6 +23,13 @@
<body data-spy="scroll" data-target=".navbar" data-offset="50">
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top justify-content-end">
<!-- Toggler/collapsibe Button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navbar links -->
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#section1">Home</a>
@ -42,7 +50,11 @@
</div>
</li>
</ul>
</div>
</nav>
<div id="section1" class="tile">
<div class="container">
<div>
@ -57,34 +69,50 @@
</div>
</div>
<div id="section2" class="container bg-warning tile">
<div id="section2" class="bg-warning tile">
<div class="container">
<h1>Section 2</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
</div>
<div id="section3" class="container bg-secondary tile">
</div>
<div id="section3" class="bg-secondary tile">
<div class="container">
<h1>Section 3</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
</div>
<div id="section41" class="container bg-danger tile">
</div>
<div id="section41" class="bg-danger tile">
<div class="container">
<h1>Section 4 Submenu 1</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
</div>
<div id="section42" class="container bg-info tile">
</div>
<div id="section42" class="bg-info tile">
<div class="container">
<h1>Section 4 Submenu 2</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
look at
the navigation bar while scrolling!</p>
</div>
</div>
</body>
</html>