Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    Neet Psd to Html help

    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.

  • #2
    New Coder
    Join Date
    Sep 2011
    Thanked 0 Times in 0 Posts
    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.


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts