erinjnes Posted January 30, 2012 Share Posted January 30, 2012 Hi, 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. Link to comment https://forums.phpfreaks.com/topic/256068-problem-while-converting-psd-to-html/ Share on other sites More sharing options...
Solution fredrikrob Posted January 30, 2012 Solution Share Posted January 30, 2012 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. Link to comment https://forums.phpfreaks.com/topic/256068-problem-while-converting-psd-to-html/#findComment-1312731 Share on other sites More sharing options...
erinjnes Posted January 30, 2012 Author Share Posted January 30, 2012 Thanks Fred , i think it's working fine now. I was not using display: block , but now it's fixed all because of you. Link to comment https://forums.phpfreaks.com/topic/256068-problem-while-converting-psd-to-html/#findComment-1312736 Share on other sites More sharing options...
albertarnnis Posted January 23, 2014 Share Posted January 23, 2014 You have to simply apply these code ... a {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;color: gray;text-align: center;}a:hover {color: #fff;background: url(url of the pic) repeat-x;} ==================== If still your problem presist then visit us. psd converter | psd to html service Link to comment https://forums.phpfreaks.com/topic/256068-problem-while-converting-psd-to-html/#findComment-1466263 Share on other sites More sharing options...
Maq Posted January 24, 2014 Share Posted January 24, 2014 Don't bump old threads and don't self promote. Link to comment https://forums.phpfreaks.com/topic/256068-problem-while-converting-psd-to-html/#findComment-1466441 Share on other sites More sharing options...
Recommended Posts