Looking to enhance the bootstrap 4 navbar with multiple subnavs? Check out this code example from W3Schools
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
.... (code continues) ....
I want to add an extra arrow down (fa-caret) to "About -> Company". Specifically, I'd like it to be structured as About -> Company -> Admin, Accounting, Etc. I attempted to nest the "subnav" classes together but it didn't work. How can I achieve nested "subnav" classes?
Here's an example of the desired structure: https://i.sstatic.net/ZPPvB.png
The goal is to have the second horizontal line with Admin, Accounting, Etc only visible when clicking on the + next to Company. I tried modifying the code as shown below, but unfortunately, the second horizontal line remains visible at all times:
<div class="subnav">
<button class="subnavbtn">About <i class="fa fa-caret-down"></i></button>
<div class="subnav-content">
<button class="subnavbtn">Company <i class="fa fa-plus-square "></i></button>
<div class="subnav-content">
<a href="#">Admin</a>
<a href="#">Accounting</a>
<a href="#">Etc</a>
</div>
<a href="#team">Team</a>
<a href="#careers">Careers</a>
</div>