HTML Mario

in mario •  7 years ago  (edited)

Hi, Steemians

I made this pixelated Mario using CSS Grid, I thought you might like to take a look!

https://s.codepen.io/MichaelHill/debug/oGpeMO/XxkVwDEEWXvM

HTML:

<html lang="en-gb">

<head>
 <title>Page Title</title>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
 <section>
  (html comment removed:  Line 1 )
  <div style="background-color:;"></div>
  <div style="background-color:;"></div>
  <div style="background-color:;"></div>
  <div style="background-color:#ee1c25;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 2 )
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: #ee1c25;"></div>
  <div style="background-color: #ee1c25;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: #ee1c25;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 3 )
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 4 )
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#874c2e  ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: #fdd0af;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 5 )
  <div style="background-color: ;"></div>
  <div style="background-color: #874c2e;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: #874c2e;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: #fdd0af;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  (html comment removed:  Line 6 )
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color:#000000 ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 7 )
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 8 )
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 9 )
  <div style="background-color: ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: #ee1c25;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 10 )
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 11 )
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#fef001 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#fef001 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#ee1c25 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 12 )
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 13 )
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color:#fdd0af ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 14 )
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color:#0065b3 ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 15 )
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  (html comment removed:  Line 16 )
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color: #874c2e;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color: ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color:#874c2e ;"></div>
  <div style="background-color: ;"></div>
 </section>
 (html comment removed:  Browser Version Check )
 <script>
  (function(u) {
   var s = document.createElement("script");
   s.async = true;
   s.src = u;
   var b = document.getElementsByTagName("script")[0];
   b.parentNode.insertBefore(s, b);
  })("//updatemybrowser.org/umb.js");
 </script>
</body>

</html>

 
CSS:

section {
    display: grid;
    grid-template-columns: repeat(13, 15px);
    grid-template-rows: repeat(16, 15px);

    justify-content: center;
    align-content: center;

    height: 100vh;
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!