.postuseravatar img { margin-left: 50px; } or an other value that fits margin-left: auto; margin-right: auto; isn't working, don't know why