0

I have a flexbox and several divs inside, which should be justified as space-around. On the screenshot you can see that this is a part of table of contents of a book, but the problem is that because this is flexbox and because screens have different sizes, space between dots isn't constant.

example

My idea is to fill it with content after, so for example:

<div class="myflexbox">
  <div class="dot">.</div>
  <div class="dot">.</div>
  <div class="dot">.</div>
  <div class="pagenumber">.1160</div>
</div>

we will have something like this in styles for content after:

.dot:after {
  content: "..................."; //millions of dots
}

Is there a way to hide extra dots so it doesn't overlap once content after reaches next dot or page number?

Asons
  • 84,923
  • 12
  • 110
  • 165
Leonid Bor
  • 2,064
  • 6
  • 27
  • 47

0 Answers0