L
L
Lapin452021-07-04 13:06:55
css
Lapin45, 2021-07-04 13:06:55

How to make a similar block in pure css?

Good day!

Tell me how to make a block on the left as in the picture in the registration form?
60e1883c4aa07816839388.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
A person from Kazakhstan, 2021-07-04
@LenovoId

If the SVG scale is of interest then here: https://codepen.io/topicstarter/pen/mdmeQWJ

S
Stepan, 2021-07-04
Botsko @Stepan_1996

I propose the following option.
We make two parts: left and right.
in the right one, everything seems to be simple, and in the left one, we set the background gradient.
Inside which we will place some of its child elements - logo, text, circles. I would make all of them absolute, after setting the left part of the form - position: relative.
We create one more block - for the wavy color background - along the diagonal of the block ... we also make it an absolute, and set it to occupy the entire height and width of the parent. Its z-index will be less than in texts, logos and circles, but more than in the background of a wavy color. I would ask the designer for the wavy background itself, since there are no ideas yet on how to implement such waves =/.
In terms of responsiveness , I would compose the https:// prnt elements this way . sc/ 18hg5rm - remove spaces =)

A
Airat, 2021-07-04
@Airat-2020

Good.
In this case, the block can be laid out like this:

  1. as a percentage, set the width of the left block (in the picture it is somewhere around 60% of the width of the entire block)
  2. we make this background in the left block (including circles and waves) one picture and insert it as a background
  3. set the left block to a common padding, for example 20px
  4. all text elements and the logo are typed in the usual way in the block flow

Thanks to this approach, our grid will be adaptive. Positioning the elements with an absolute in this case is not at all appropriate, since the entire grid will break during compression and expansion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question