I have uploaded the picture above that what i want but unable to make it. I am not an expert designer and actually learning designing. I have Psd template of a website and converting it to the Html format. In I have code almost everything well but i am getting issue in Navigation menu. I am using an image at the background of anchor text in the navigation bar. Image is of 25px height and it supposed to be shown on the hover. But i check after applying the css i can see the hover picture with 25px but instead background is stick with the size of actual size of text size of anchor text. Can anyone please help me in this? Thanks in advance.
As i can see in the attached picture that background picture is set to a:hover so in this case you have set the background picture for hover. As background on hover is fixing with text size. So in that case you must set display: block because A tag is an inline tag which needs to be set as block. Hopefully it will work. It will be good if you can share the css code you have used to find out the exact issue.
It will be better if you can explain your problem showing your code else this has to be a hit and try