Hoi, ik ben nieuw hier....
Ik zocht een simpele navigatie menu voor mijn site maar deze werkt niet naar behoren...
Ik vroeg mij af of iemand mij hiermee kan helpen?
Zo moet, als je over de menulinks scrolt het groene mee scrollen, en ik wil dat de tekst in de div komt....
nu zie ik de helft van de tekst niet?
Met iframes doe je target maar met div heb ik hier geen ervaring mee...
ook heb ik een vraag over class maar daar moet ik denk ik een nieuw topic voor aanmaken?
Wie kan mij helpen
Ik zocht een simpele navigatie menu voor mijn site maar deze werkt niet naar behoren...
Ik vroeg mij af of iemand mij hiermee kan helpen?
HTML:
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 25%;
background-color: #f1f1f1;
position: fixed;
height: 100%;
overflow: auto;
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
li a.active {
background-color: #4CAF50;
color: white;
}
li a:hover:not(.active) {
background-color: #555;
color: white;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="zoeken.html">Zoeken</a></li>
<li><a href="nieuws.html">Nieuws</a></li>
<li><a href="tables.html">Tables</a></li>
<li><a href="logo.html">Logo</a></li>
<li><a href="link.html">Links</a></li>
</ul>
<div style="margin-left:1%;padding:1px px;height:1000px;">
<h2>Fixed Full-height Side Nav</h2>
<h3>Try to scroll this area, and see how the sidenav sticks to the page</h3>
<p>Notice that this div element has a left margin of 25%. This is because the side navigation is set to 25% width. If you remove the margin, the sidenav will overlay/sit on top of this div.</p>
<p>Also notice that we have set overflow:auto to sidenav. This will add a scrollbar when the sidenav is too long (for example if it has over 50 links inside of it).</p>
<p>Some text..</p>
<p>Some text..</p>
<p>Some text..</p>
<p>Some text..</p>
<p>Some text..</p>
<p>Some text..</p>
<p>Some text..</p>
</div>
</body>
Zo moet, als je over de menulinks scrolt het groene mee scrollen, en ik wil dat de tekst in de div komt....
nu zie ik de helft van de tekst niet?
Met iframes doe je target maar met div heb ik hier geen ervaring mee...
ook heb ik een vraag over class maar daar moet ik denk ik een nieuw topic voor aanmaken?
Wie kan mij helpen