Created
November 24, 2019 14:54
-
-
Save Ze1598/ebf71a8d848db9a763c9aa697a4f3888 to your computer and use it in GitHub Desktop.
model-viewer demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The page occupies 100% of the screen */ | |
html { | |
height: 100%; | |
width: 100%; | |
} | |
/* The content occupies the entire space available */ | |
body { | |
height: 100%; | |
margin: 0; | |
background-color: #455A64; | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | |
} | |
/* Transform the page into a 2-column grid */ | |
#holder { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
height: 100%; | |
} | |
/* The left grid contains the text and occupies 50% of the available space */ | |
#text { | |
align-self: center; | |
justify-self: center; | |
text-align: center; | |
margin: 0px 45px; | |
} | |
/* The right grid contains the model and occupies 50% of the available space */ | |
model-viewer { | |
width: 100%; | |
height: 100%; | |
outline: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment