I
I
IDOL7722021-08-11 15:18:29
css
IDOL772, 2021-08-11 15:18:29

How to lean border to another border'u?

6113be9a3e82f391089865.jpeg6113bea93d7d2538952816.jpeg

Can you please tell me what css properties you need to set in order to get the result, as in the second picture?
The first picture is the current result.
Styles are set as follows:

.product_info - outer block
.product_specifications - inner block

.product_info {
  border: 1px solid black;
  border-radius: 5px;
  height: 100px;
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

.product_specifications{
  text-align: center;
  border: 1px solid black;
  border-radius: 5px;
  font: bold calc(100vw/70) 'Roboto Condensed', sans-serif;
  padding-left: 3px;
  padding-right: 3px;
  position: relative;
  top: 0;
}


C position seems to work, but if you reduce the resolution, then the .product_specifications inner block flies down

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheSnegok, 2021-08-11
@IDOL772

Through position: absolute, if you still want it not to fly down when it is reduced
:

K
kryamk, 2021-08-11
@kryamk

outline instead of border can be used

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question