On smaller screens like mobile devices, I am having trouble increasing the font size of the navigation bar menu items. While it displays well on desktop screens, the font size becomes very small and difficult to read when the screen collapses to a mobile view.
I attempted the code below to address this issue, but unfortunately, it did not work. Note: The website is built using Bootstrap 4.
#m1 {
color: darkblue;
font-weight: 450;
font-size: 1.25rem;
font-weight: bold;
@media ( min-width:375px){
font-weight:bolder;
}
}
#m1:hover {
text-decoration: underline;
text-decoration-color: red;
}
.nav-item {
list-style-type: disc;
padding: 1.1;
margin-left: .5cm;
margin-right: .0cm;
}
<div class="collapse navbar-collapse" id="MyNavBarDiv">
<ul class="navbar-nav ml-auto" style="margin-right: 60px;" >
<li class="nav-item">
<a class="nav-link" id="m1" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" id="m1" href="#">About-us</a>
</li>
<li class="nav-item">
<a class="nav-link" id="m1" href="#">EduCare</a>
</li>
</ul>
</div>