I would like to center aligned my linked images.
To center align, I would have to use the following properties:
That works fine if the image is not linked.
In my case, even if I hover over a white space, my hover properties would come into place due to it being changed to a block element. And this wouldn't work unless I have a fixed image size.
Is there a fix for this? To center align images if I have different sizes to cater to?
To center align, I would have to use the following properties:
Code:
display:block;
margin:0 auto;
That works fine if the image is not linked.
In my case, even if I hover over a white space, my hover properties would come into place due to it being changed to a block element. And this wouldn't work unless I have a fixed image size.
Is there a fix for this? To center align images if I have different sizes to cater to?