<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width">
<meta name="format-detection" content="telephone=no, address=no, email=no, date=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>UXKM CSS3 grid layout</title>
*{margin:0;padding:0;box-sizing:border-box;}
@supports (display: grid) {
-webkit-transform: translateX(100%);
transform: translateX(100%);
transition: right .5s ease-in-out, -webkit-transform .5s ease-in-out;
transition: right .5s ease-in-out, transform .5s ease-in-out;
transition: right .5s ease-in-out, transform .5s ease-in-out, -webkit-transform .5s ease-in-out;
-webkit-transform: translateX(0%);
transform: translateX(0%);
@supports (display: grid) {
@supports (display: grid) {
grid-template-columns: 1fr 1fr;
grid-auto-rows: minmax(18vh, 1fr);
@media (min-width: 34em) {
grid-template-columns: minmax(3rem, 1fr) minmax(50px, 100px) minmax(50%, 70ch) minmax(50px, 100px) minmax(3rem, 1fr);
main div:nth-of-type(1) {
background-color: #800f8a;
main div:nth-of-type(2) {
background-color: #750f8a;
@media (min-width: 34em) {
main div:nth-of-type(2) {
main div:nth-of-type(3) {
background-color: rgba(107, 15, 138, 0.6);
@media (min-width: 34em) {
main div:nth-of-type(3) {
main div:nth-of-type(4) {
background-color: #610f8a;
main div:nth-of-type(5) {
background-color: #570f8a;
main div:nth-of-type(6) {
background-color: #4d0f8a;
main div:nth-of-type(7) {
background-color: #420f8a;
main div:nth-of-type(8) {
background-color: rgba(56, 15, 138, 0.6);
@media (min-width: 34em) {
main div:nth-of-type(8) {
main div:nth-of-type(9) {
background-color: #2e0f8a;
main div:nth-of-type(10) {
background-color: #240f8a;
main div:nth-of-type(11) {
background-color: #1a0f8a;
main div:nth-of-type(12) {
background-color: #0f0f8a;
@media (min-width: 34em) {
main div:nth-of-type(12) {
font-family: 'Nixie One', sans-serif;
font-family: 'Libre Baskerville';
<h2>A true layout tool for the web</h2>