It will be nice if you can share your Css code with this post. So we can find out where you are doing wrong. But i will suggest you that please try to use "display: block" and "line-height: 25px" in your css file for the specific a tag. As i have already have gone through the same issue. Go to the full post
Problem while converting Psd to Html.
Posted 30 January 2012 - 07:10 PM
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.
Posted 30 January 2012 - 07:15 PM Best Answer
Posted 30 January 2012 - 07:26 PM
Posted 23 January 2014 - 09:39 AM
You have to simply apply these code ...
display: block; /* as it's the most important may be you are missing this one */
line-height: 25px; /*as your picture is of 25px height */
padding: 0px 7px;
background: url(url of the pic) repeat-x;
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users