E
E
Erl2020-04-01 11:35:31
Programming
Erl, 2020-04-01 11:35:31

How to make such a frame for the slider?

Good day.
I tried to do it with the help of borders, but there is a problem with the border inside, and most importantly, with the placement of content.
How then can this be implemented?
5e84525017c54965272306.png

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
Saboteur, 2019-09-19
@saboteur_kiev

The stack is needed for this, in order not to take values ​​"from below".
The stack is useful for recursion.

E
evgeniy_lm, 2019-09-19
@evgeniy_lm

AKM is a simple stack-to-queue converter
. But seriously, the stack works according to the LIFO (last in, first out) rule, like cartridges in a machine gun magazine. There is also a queue (like in a vegetable store) where the FIFO rule applies (first in, first out), which is exactly what you need, judging from the example.
There are also arrays and lists where random access to elements by index

I
ilya73, 2019-09-19
@ilya73

Let me disagree with previous speakers.
In Forth, getting the nth element from the depth of the stack is easy and there is a word PICK for this.
In principle, knowing the pointer to the top of the stack, you can easily calculate the pointer of the required element, and then it's a matter of technology (C, asm, Forth ... they can easily handle this). ;)

S
Stasik88, 2019-09-23
@Stasik88

I knew it!

A
Andrey Fedorov, 2020-04-01
@NooBiToo

https://codepen.io/aliencash/pen/WNvmKpE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question