Last active
October 29, 2016 22:28
-
-
Save davidlav/71424e1a7b38a5c2fe6484c8e6f764ae to your computer and use it in GitHub Desktop.
How do I prevent the green box from growing and force it to scroll internally instead?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>EDIS</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div class="place-holder" id="splash-banner"></div> | |
<div id="under-splash-banner"> | |
<div id="newsfeed"> | |
<!--Try deleting all <p> tags and pasting them in again to see how | |
its forcing the entire #under-splash-banner div to resize, I want to | |
prevent this resizing by forcing the green box only to scroll, rather | |
than the whole window--> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
<p>Content here</p> | |
</div> | |
<div id="resizable-panels"> | |
<div id="patient-info"> | |
<div class="place-holder" id="order-history"></div> | |
<div class="place-holder" id="health-status"></div> | |
<div class="place-holder" id="to-do"></div> | |
</div> | |
<div id="timeline"> | |
<svg id="timeline-svg"></svg> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'https://fonts.googleapis.com/css?family=Roboto'; | |
@import 'https://fonts.googleapis.com/css?family=Open+Sans'; | |
/* line 4, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
html { | |
box-sizing: border-box; | |
} | |
/* line 7, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
*, *::before, *::after { | |
box-sizing: inherit; | |
} | |
/* line 10, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
body { | |
display: flex; | |
flex-direction: column; | |
margin: 0; | |
height: 100vh; | |
max-height: 100vh; | |
font-family: 'Roboto', 'Open Sans', sans-serif; | |
} | |
/* line 18, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
.place-holder { | |
display: flex; | |
font-size: 18pt; | |
} | |
/* line 24, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#splash-banner { | |
height: 100px; | |
background-color: rgba(255, 0, 0, 0.2); | |
flex-shrink: 0; | |
} | |
/* line 29, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#under-splash-banner { | |
display: flex; | |
flex-direction: row-reverse; | |
flex: 1; | |
width: 100vw; | |
} | |
/* line 35, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#newsfeed { | |
flex-grow: 0; | |
flex-shrink: 0; | |
width: 400px; | |
background-color: rgba(0, 255, 0, 0.2); | |
overflow-y: scroll; | |
} | |
/* line 42, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#resizable-panels { | |
display: flex; | |
flex-direction: column; | |
width: 100%; | |
} | |
/* line 47, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#patient-info { | |
display: flex; | |
flex: 1; | |
} | |
/* line 51, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#order-history { | |
flex: 1; | |
background-color: rgba(0, 0, 255, 0.1); | |
} | |
/* line 55, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#health-status { | |
flex: 1; | |
background-color: rgba(0, 0, 255, 0.2); | |
} | |
/* line 59, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#to-do { | |
flex: 1; | |
background-color: rgba(0, 0, 255, 0.3); | |
} | |
/* line 63, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#timeline { | |
display: flex; | |
flex: 1; | |
} | |
/* line 68, D:/Webstorm Projects/EDIS/src/css/style.sass */ | |
#timeline-svg { | |
flex: 1; | |
border: 1px solid gray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment