C
C
COSTYLE2019-08-22 09:12:20
css
COSTYLE, 2019-08-22 09:12:20

Why does the link stretch to the full height of the parent block?

The link (Login) in the block stretches to the full height.

I want to achieve this result:
5d5e32298e09e366193971.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2019-08-22
@waneroy

.login-btn {
  display: table;
  padding:10px 20px;
}

R
Ruslan Yanborisov, 2019-08-22
@Rus_K_o

Your class login display: flex. Flex stretches all child elements to their maximum by default. For your case, I would just recommend playing around with the height of the parent block itself. And also set the login height: auto class.
https://developer.mozilla.org/ru/docs/Learn/CSS/CS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question