javascript darken screen except one div code example Example: html dim entire screen box-shadow: 0 0 0 100vmax rgba(0,0,0,0.6);