While working on my web development project, I encountered an issue with the navigation bar. My friend was responsible for creating the nav bar, but when I integrated his code into my website, it clashed with Bootstrap and caused display errors. I tried various solutions like rearranging the link references after Bootstrap, but none of them worked.
I suspect that the clash occurred due to conflicting classes in the CSS and HTML codes. Here are the snippets of CSS and HTML:
<nav class="navbar">
<ul>
<li><a class="donation" border="" href="#donate">DONATE</a></li>
<li class="dropdown">
<a href="#events" id="maintopic" class="dropbtn">EVENTS</a>
<div id="specificdays" class="dropdown-content">
<a href="#">World Environment Day</a>
<a href="#">World Ocean Day</a>
<a href="#">World Clean Up Day</a>
<a href="#">World Day to combat Desertification and Drought </a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" id="maintopic" class="dropbtn">PROJECTS</a>
<div class="dropdown-content">
<a href="#">Reward System</a>
<a href="#">Comic Strips & Posters</a>
<a href="#">Make A Pledge</a>
<a href="#">Why a Greenboy</a>
<a href="#">Donate to a cause</a>
</div>
</li>
<li><a id="maintopic" href="#about">ABOUT</a></li>
<li id="logo"><a href="#home"><img src="eugene.png" class="logo"></a></li>
</ul>
</nav>
CSS:
*{
margin: 0;
padding: 0;
}
#mainpage{
width: 100%;
height: 650px;
}
/* Rest of the CSS code goes here */