Search
 
SCRIPT & CODE EXAMPLE
 

CSS

creating a static flex container with scrolling child element

* {
  margin: 0;
  padding: 0;
}
header {
  background: red;
  height: 10vh;
}
main {
  background: green;
  display: flex;
  height: 90vh;
}
.left {
  background: yellow;
  flex: 0 0 50px;
  margin: 10px;
}
.right {
  background: blue;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.sub-header {
  background: #999999;
  margin: 10px;
}
.context {
  background: white;
  overflow-y: scroll;
  margin: 0 10px 10px;
}
.context > div {
  height: 3000px;
}
Comment

PREVIOUS NEXT
Code Example
Css :: Styling based on parent state 
Css :: change d in path svg css 
Css :: css how to transform and stay on top of page 
Css :: css 30% height visible 
Css :: adding a background image in css 
Css :: Slide up and down animation CSS CodePen 
Css :: writting css with twin.macro and styled components 
Css :: responsive header with logo and menu css code 
Css :: all heading tags selector scss 
Css :: images css in react native fir in container 
Css :: vue center components in body 
Css :: RichText.Content add className 
Css :: css check if class as color white 
Css :: edit default theme in component angular css 
Css :: programming languages logo css 
Css :: css cap rows paragraph 
Css :: bold on hover but not add padding or distance 
Css :: sumar clases css 
Css :: types of margin in css 
Css :: access is denied nul server.js 
Css :: by.cssselector 
Css :: overwrite theme css in parent css 
Css :: vw css 
Css :: how to change the size of a style="text-align: center;" 
Css :: firefox overflow hidden not working 
Typescript :: Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[HttpClient - HttpClient - HttpClient]: 
Typescript :: typescript onclick event type props 
Typescript :: enabletrace angular 
Typescript :: list open ports firewalld 
Typescript :: sort array by date typescript 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =