Hello there!
I've encountered an issue with my drop-down menu. The text within the <a>
tags is too long to fit on a single line, and I'm struggling to make it display in two lines instead. I've been experimenting for the past couple of days, adjusting the width property to force it onto one line, but it's not aesthetically pleasing. I feel like I must be overlooking something simple, but I just can't seem to spot it.
Your assistance would be greatly appreciated!
Here is the code I'm working with:
HTML snippet:
<ul class="supplier_top_link">
<li>Category 1
<ul class="supplier_1">
<li><a href="#">Sub-Category 1</a>
</li>
<li><a href="#">Sub-Category 2</a>
...
CSS snippet:
.supplier_top_link {
position : relative;
font-size : 14px;
font-weight : 400;
z-index : 3;
}
...