I have already set the border of an image within a div to be none. I now want to center that image within its containing div. I have tried using the mar
div
mar
Try setting the image’s display property to block:
display
block
banner { height: 100px; width: 960px; padding-bottom: 10px; } banner img { border: none; display: block; margin: 0 auto; }