Skip to content

Instantly share code, notes, and snippets.

@readingtype
readingtype / flex_with_autoscroll.html
Created October 16, 2015 12:24
A CSS flexbox layout with a fixed header, a fixed footer, and an expanding centre section which scrolls if its content height is greater than its own height.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test fixed and scrolling divs in a flexbox layout</title>
<style media="screen">
* {
border: 0;
margin: 0;
padding: 0;