Jump to content

Problem while converting Psd to Html.


erinjnes
Go to solution Solved by fredrikrob,

Recommended Posts

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
Share on other sites

  • Solution

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
Share on other sites

  • 1 year later...

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
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.