Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <svg id="square" viewBox="0 0 500 500">
  <g id="colours" mask="url(#lines)">
    <path class="num-1" d="M200,200 h100 v100 h-100 z"></path>
    <path class="num-2" d="M0,0 h100 v100 h-100 z"></path>
    <path class="num-3" d="M100,400 h100 v100 h-100 z"></path>
    <path class="num-4" d="M400,300 h100 v100 h-100 z"></path>
    <path class="num-5" d="M400,100 h100 v100 h-100 z"></path>
    <path class="num-6" d="M300,200 h100 v100 h-100 z"></path>
    <path class="num-7" d="M300,400 h100 v100 h-100 z"></path>
    <path class="num-8" d="M0,300 h100 v100 h-100 z"></path>
    <path class="num-9" d="M200,400 h100 v100 h-100 z"></path>
    <path class="num-1" d="M300,0 h100 v100 h-100 z"></path>
    <path class="num-2" d="M400,0 h100 v100 h-100 z"></path>
    <path class="num-3" d="M0,100 h100 v100 h-100 z"></path>
    <path class="num-4" d="M100,100 h100 v100 h-100 z"></path>
    <path class="num-5" d="M100,300 h100 v100 h-100 z"></path>
    <path class="num-6" d="M200,300 h100 v100 h-100 z"></path>
    <path class="num-7" d="M100,200 h100 v100 h-100 z"></path>
    <path class="num-8" d="M200,100 h100 v100 h-100 z"></path>
    <path class="num-9" d="M300,100 h100 v100 h-100 z"></path>
    <path class="num-1" d="M100,0 h100 v100 h-100 z"></path>
    <path class="num-2" d="M400,200 h100 v100 h-100 z"></path>
    <path class="num-3" d="M0,400 h100 v100 h-100 z"></path>
    <path class="num-4" d="M0,200 h100 v100 h-100 z"></path>
    <path class="num-5" d="M200,0 h100 v100 h-100 z"></path>
    <path class="num-6" d="M300,300 h100 v100 h-100 z"></path>
    <path class="num-7" d="M400,400 h100 v100 h-100 z"></path>
  </g>
  <mask id="lines">
    <!-- white = visible | black = invisible -->
    <path stroke="white" transform="scale(1.225)translate(5,5)" d="M 100,100 Q 0,0 50,200 Q 100,400 250,350 Q 400,300 400,200 Q 400,100 350,150 Q 300,200 300,300 Q 300,400 150,350 Q 0,300 100,350 Q 200,400 250,200 Q 300,0 350,0 Q 400,0 200,50 Q 0,100 50,100 Q 100,100 100,200 Q 100,300 150,300 Q 200,300 150,250 Q 100,200 150,150 Q 200,100 250,100 Q 300,100 200,50 Q 100,0 250,100 Q 400,200 200,300 Q 0,400 0,300 Q 0,200 100,100 Q 200,0 250,150 Q 300,300 350,350 Q 400,400 300,300 Q 200,200 100,100 " />
    <!-- Update coords to match the 500x500 grid ? -->
  </mask>
</svg>

2 19 23 10 11<br>
12 13 17 18 5<br>
22 16 1 6 20<br>
8 14 15 24 4<br>
21 3 9 7 25<br>
<br>
2 1 5 1 2<br>
3 4 8 9 5<br>
4 7 1 6 2<br>
8 5 6 6 4<br>
3 3 9 7 7


              
            
!

CSS

              
                svg {
  fill: none;
  stroke: black;
  stroke-width: 5px;
/*   background: white; */
  border: 1px dotted white;
}
body { background: #F48FB1 }

.num-1  { fill: #091540; stroke: transparent; }
.num-2  { fill: #7692FF; stroke: transparent; }
.num-3  { fill: #ABD2FA; stroke: transparent; }
.num-4  { fill: #3D518C; stroke: transparent; }
.num-5  { fill: #1B2CC1; stroke: transparent; }
.num-6  { fill: #012A36; stroke: transparent; }
.num-7  { fill: #00A6FB; stroke: transparent; }
.num-8  { fill: #1F7A8C; stroke: transparent; }
.num-9  { fill: #50C9CE; stroke: transparent; }

              
            
!

JS

              
                
              
            
!
999px

Console