Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 21, 2019 18:55
Show Gist options
  • Save graphoarty/daad94bc6b20093ef487ae2b3b171878 to your computer and use it in GitHub Desktop.
Save graphoarty/daad94bc6b20093ef487ae2b3b171878 to your computer and use it in GitHub Desktop.
<style>
/* CSS applied on the body */
body {
/* Making sure that the body fills up the entire window */
margin: 0px;
/* If there is an overflow, which basically means if there is an object that goes outside the display, just hide it or hide the part that goes outside. These are the preferred options for Three.js */
overflow: hidden;
}
/* CSS applied to the class .full-screen */
.full-screen {
/* Set the position of the element relative to left, right, bottom or top */
position: absolute;
/* Set the object 0 pixels from the bottom */
bottom: 0px;
/* Set the object 0 pixels from the left */
left: 0px;
/* Set the object 0 pixels from the right */
right: 0px;
/* Set the object 0 pixels from the top */
top: 0px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment