File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2244,11 +2244,16 @@ iframe {
2244
2244
}
2245
2245
2246
2246
.cnv_div {
2247
- /* This ensures that all canvases from example code snippets are only
2248
- * the width of their actual canvases, rather than the width of
2249
- * the entire page, potentially obscuring the example code and
2250
- * preventing it from being selected. */
2251
- display : inline-block;
2247
+ /* This ensures that all canvases and additional html elements (if any) from
2248
+ * the example code snippets are only 100px wide rather than covering the
2249
+ * entire page, which potentially obscures the example code. */
2250
+ display : inline-flex;
2251
+ flex-direction : column;
2252
+ }
2253
+
2254
+ .cnv_div > * {
2255
+ width : 100px ;
2256
+ height : auto;
2252
2257
}
2253
2258
2254
2259
You can’t perform that action at this time.
0 commit comments