how to align text with image in css code example Example: center image css .centerImg { display: block; margin: 0 auto; }