body { color: white; background-color: black; } #box { border: 1px solid white; background-color: #333; position: fixed; width: 40%; height: 40%; left: 30%; top: 30%; }