I'm trying to create in-page navigation menu by styling ul & li with CSS. With the help of previous answers and a lot of trial and error, I've nearly done it - but can't get the top line to align to the left. Instead, it's indented a little bit with extra space somehow.
The real page I'm trying to update is below:
https://l-a-m.org/pages/banstead
Could anyone tell me where I'm going wrong please?
ul,
li {
list-style-type: disc;
text-align: left;
padding-inline-start: 0;
min-width: fit-content;
padding-right: 2em;
padding-top: 1em;
align-self: flex-end;
color: #363535;
}
li:hover {
color: #363535;
border-bottom: transparent 1px !important;
}
ul.tabbies {
display: flex;
flex-wrap: wrap;
max-width: auto;
margin: auto;
text-align: left;
text-transform: uppercase;
justify-content(flex-start);
align-items(stretch);
align-self: flex-end;
color: #363535;
}
.tabbies .active {
color: #c70000;
text-transform: uppercase;
}
.tabbies li {
text-align: left;
text-transform: uppercase;
list-style: none;
}
.tabbies li a {
text-decoration: none;
text-align: left;
color: #363535;
}
.tabbies li:hover {
color: #c70000;
text-transform: uppercase;
border-bottom: solid #000 1px !important;
}
<ul class="tabbies">
<ul class="tabbies">
<li><a href="https://www.l-a-m.org/pages/associate-only-rides">Rides</a></li>
<li><a class="active" href="https://www.l-a-m.org/pages/banstead">Locations</a></li>
<li><a href="https://www.l-a-m.org/pages/norfolk">Training Weekends</a></li>
<li><a href="https://www.l-a-m.org/pages/local-observer">Observers</a></li>
</ul>
</ul>
<ul class="tabbies">
<li><a class="active" href="https://www.l-a-m.org/pages/banstead">Banstead</a></li>
<li><a href="https://www.l-a-m.org/pages/tatsfield">Tatsfield</a></li>
</ul>