For horizontal centering use these lines below Inside the <head> or your external CSS file: <style> .HorizontalCentering { display: block; margin-left: auto; margin-right: auto;} </style> Inside the <body>: <img class= "HorizontalCentering" src="path/picture.jpg" alt="description of picture" style="width:60%">