.itercontainer { display: flex; align-items: center; justify-content: center; } .iterator { border: 2px solid white; background-color: black; width: 80%; } .iterator p { color: white; text-align: center; font-weight: bold; }