M
M
mmmq2020-01-30 11:53:04
css
mmmq, 2020-01-30 11:53:04

How to solve the problem with tables?

Hello.

it is not possible to make a similar implementation as in the picture. Price levels can be done at the expense table, but using the table there is no way to make flat volumes ( green, red from right to left ).

Problem: When an element is added to the strip, the table perceives it as another cell and everything is shifted, even if you do it display: absolute. The size of the strip varies from volume 0 - 1, where 1 - 100%.

I tried to do it through a gradient, such a solution turned out. Didn't think of anything better.

The levels themselves are not difficult to make:

<!--Красные уровни-->
<table>
<tbody>
  <tr>
    <td>163</td>
    <td>0.00324</td>
    <td>50</td>
    <td>50</td>
  </tr>
</tbody>

<!--Центр-->
<tbody>
  <tr>
    <td>Spread, USDT</td>
    <td>0.0001</td>
    <td>0.31%</td>
  </tr>
</tbody>

<!--Зеленые уровни-->
<tbody>
  <tr>
    <td>695</td>
    <td>0.00323</td>
    <td>215</td>
    <td>215</td>
  </tr>
</tbody>
  
 </ table>


5e3296e6c9c88919272293.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-01-30
@mmmq

normal gradient

( https://cssgradient.io/ )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question