I need to center an image both vertically & horizontally inside a bigger div. How can I achieve this using CSS?
#yourImageContainer { background:url(some_image.jpg) no-repeat center center; height:300px; width:100px; }
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments