File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1010 display : flex;
1111 justify-content : center;
1212 }
13+
14+ .snippet-resizer { display : flex; margin : 0 ; padding : 0 ; resize : both; overflow : hidden }
15+ .snippet-resizer > .snippet-resized { flex-grow : 1 ; margin : 0 ; padding : 0 ; border : 0 }
1316 /* start-snippet{container-css} */
1417 .container {
15- border : red dashed;
18+ border : red 4 px dashed;
1619 width : 50% ;
1720 height : 300px ;
1821 }
2124</ head >
2225< body >
2326 <!-- start-snippet{container-html} -->
24- < div class ="container ">
27+ < div class ="container snippet-resizer ">
2528 < canvas id ="game "> </ canvas >
2629 </ div >
2730 <!-- end-snippet{container-html} -->
Original file line number Diff line number Diff line change 1010 display : flex;
1111 justify-content : center;
1212 }
13+
14+ .snippet-resizer { display : flex; margin : 0 ; padding : 0 ; resize : both; overflow : hidden }
15+ .snippet-resizer > .snippet-resized { flex-grow : 1 ; margin : 0 ; padding : 0 ; border : 0 }
16+
1317 /* start-snippet{container-css} */
1418 .container {
1519 /* Flexbox used to center game */
1822 align-items : center;
1923
2024 /* Container size with border */
21- border : red dashed;
25+ border : red 4 px dashed;
2226 width : 50% ;
2327 height : 300px ;
2428 }
2731</ head >
2832< body >
2933 <!-- start-snippet{container-html} -->
30- < div class ="container ">
34+ < div class ="container snippet-resizer ">
3135 < canvas id ="game "> </ canvas >
3236 </ div >
3337 <!-- end-snippet{container-html} -->
You can’t perform that action at this time.
0 commit comments