HTML CSS examples for CSS Layout:Column Layout
Wrapping part of the row and aligned next to a full height column
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .grid {<!-- www . j a v a 2 s . co m--> display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; } #map { grid-row: 1 / 3; } #operations { grid-column: 2 / 5; } #map { background-color: pink; } #daterange { background-color: yellow; } #zip { background-color: lightgreen; } #keywords { background-color: lightblue; } #operations { background-color: red; } .grid > div { text-align: center; padding: 10px; } * { box-sizing: border-box; } </style> </head> <body> <div class="grid"> <div id="map"> this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> <div id="daterange"> this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> <div id="zip"> this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> <div id="keywords"> this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> <div id="operations"> this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> </div> </body> </html>