.image-center{ width: 50%; display: block; margin-left: auto; margin-right: auto; } .text-style{ margin: 5px; }