Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Created July 4, 2012 17:44
Show Gist options
  • Save stpettersens/3048553 to your computer and use it in GitHub Desktop.
Save stpettersens/3048553 to your computer and use it in GitHub Desktop.
CSS for canvas 'layers'.
/* (Demonstration) canvases. */
canvas {
position: absolute;
margin: auto;
border: 1px solid #c3c3c3;
}
/* 'position: absolute;' is used as I found this caused the canvases
to stack upon each other in layers as I had intended. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment