#particles-js{ position:absolute; width: 10%; height: 10%; background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; } 