Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<body>

<nav class="w3-sidenav w3-light-grey w3-border" style="width:25%">
  <a class="w3-border-bottom" href="tryit.asp-filename=tryw3css_sidenav_border2.html#">Link 1</a>
  <a class="w3-border-bottom" href="tryit.asp-filename=tryw3css_sidenav_border2.html#">Link 2</a>
  <a class="w3-border-bottom" href="tryit.asp-filename=tryw3css_sidenav_border2.html#">Link 3</a>
  <a class="w3-border-bottom" href="tryit.asp-filename=tryw3css_sidenav_border2.html#">Link 4</a>
  <a class="w3-border-bottom" href="tryit.asp-filename=tryw3css_sidenav_border2.html#">Link 5</a>
</nav>

<div style="margin-left:25%">

<header class="w3-container w3-dark-grey">
  <h1>My Header</h1>
</header>

<div class="w3-container">
  <p>Add the w3-border-bottom class to the links to create link dividers.</p>
</div>

</div>
      
</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy