I'm currently developing a "tree" using bootstrap 5, a list of items that can be navigated down into. I'm implementing this using bootstrap 5 and raw HTML.
Here is the HTML structure I have set up:
https://i.sstatic.net/j84vp.png
However, I would like to include lines between these items as shown in the following image:
https://i.sstatic.net/U9UN5.png
I've attempted to create custom CSS for this, but I'm stuck and unable to achieve the desired result. I couldn't find any guidance on this in the bootstrap documentation.
The HTML code for this structure is as follows:
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="98faf7f7ecebeceaf9e8d8adb6abb6aa">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>
<br>
<div class="d-flex justify-content-around">
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
<div class="p-2 bd-highlight border border-primary">Flex item 1</div>
</div>