...

View Full Version : Neet Psd to Html help



erinjnes
01-30-2012, 06:55 PM
I am running in some problem as 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.

fredrikrob
01-30-2012, 07:16 PM
Try using this Css code for the a tag on which you are getting issue.

a {
line-height: 25px; /* as you have image with 25px height */
padding: 0px 5px; /* optional , but will be nice in menu */
display: block; /* main thing */
}

a:hover {
background: url(path of the image) repeat-x;

}


Hope you will find that helpful.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum