G
G
Grisha2020-06-14 10:20:59
css
Grisha, 2020-06-14 10:20:59

How to correctly lay out the next block with elements?

Good day. There is the following form block:
5ee5cd0c2b045828734934.png

Its width is 730px, padding between inputs is 30px on the right and 20px on the bottom.
The font size is 12px and the line-height is 20px.
Tell me how to make this fun. I redid it 6 times, but constantly the forms turn out to be slightly wider than necessary when I specify the necessary indents, paddings, text size. Because I heard the advice that you do not need to specify width and height for inputs without the need. Yes, and there are extra pixels, if you specify.

I did it through flexbox, but the moment with the dimensions is generally incomprehensible, everything continues to move out and have a crooked size.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
secretsergey, 2020-06-14
@callmegrisha

https://codepen.io/secretsergey/pen/NWxrXXJ
Slightly tweaked what you had.
PS Naming classes in 5 words is not the best idea :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question