CSS Div fill remaining height

<>

This question already has an answer here:

Answers


Give the container:

display:flex;
flex-direction:column;

and for the element:

flex:1;

The demo: https://jsfiddle.net/ugjfwbg4/1/

body {
  background-color: red;
  height: 100%;
}

.wrap {
  height: 100vh;
  width: 100%;
  padding: 20px;
  background-color: yellow;
  display:flex;
  flex-direction:column;
}

.top {
  width: 100%;
  height: 50px;
  background-color: blue;
}

.mid {
  width: 100%;
  background-color: green;
  flex:1;
  display:flex;
  flex-direction:column;
}

.left{
  flex:1;
  width: 50%;
  background-color: red;
}

.bottom {
  width: 100%;
  height: 50px;
  background-color: blue;
}
<div class="wrap">
  <div class="top"></div>

  <div class="mid">
    
    <div class="left">left</div>
  </div>

  <div class="bottom"></div>
</div>

Need Your Help

C# SOAP - Error in deserializing body of reply message (Magento API)

web-services magento soap

I'm trying to connect a C# app to Magento 1.6 (through Magento SOAP V2) using the following code:

Detect when UIGestureRecognizer is up, down, left and right Cocos2d

iphone xcode cocos2d-iphone uigesturerecognizer

I have a CCSprite that I want to move around using gestures. Problem is I'm completely new to Cocos2D. I want my sprite to perform one action when the gesture is up, another one when gesture is down,