1

I'm making a menu for that currently looks like this...

list item without periods/bullets.

When what I want is to add periods between the name and the price depending on the space between them like this

list item with periods.

As you can see, the periods don't go all the way to the the item's name. How would I connect them together??

This is my HTML:

<li>
  <div>
    <span>Number</span><h4>Name</h4>
  </div>
    <h4>Price</h4>
</li>
I_love_vegetables
  • 1,575
  • 5
  • 12
  • 26

1 Answers1

-1

you need to make a css rule like this:

.your-dots-parent::before{
  content: '. . . . . . . . . . . . . . . . . . . . . . . . .";
  /* center it however it fits */
}

Use &middot; · for a dot or &bull; • for a thicker one

here's a link that you might find helpful https://markentier.tech/posts/2021/03/responsive-toc-leader-lines-with-css/