V
V
Vadim Stepanenko2018-02-23 00:18:02
css
Vadim Stepanenko, 2018-02-23 00:18:02

Block by the height of the remaining area?

Hello. Tell me, please, the site has a header, then the sidebar goes to the left, and the main container to the right.
In the sidebar, the first block is the mini-profile, below the chat. How can I make the chat equal in height to the rest of the page?
5a8f337ae1a5c415661316.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2018-02-23
@rockon404

.sidebar {
  display: flex;
  flex-direction: column;
}

.profile {
  // your stuff
}

.chat {
  flex: 1 0 auto;
}

Demo 1
Demo 2

I
ink, 2018-02-23
@AskMy

https://codepen.io/topicstarter/pen/MQBaoB?editors=1010 - you can put as much text in item-chat as you like... for verification

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question