.grad { background-image: linear-gradient(to right, orange , white); } .center { display: block; margin-left: auto; margin-right: auto; width: 50%; }