.content{ width: 100%; height: 100%; overflow: hidden; position: relative; canvas{ width: 100%; height: 100%; border: none; outline: none; } }