Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:16:37+00:00 2026-06-15T14:16:37+00:00

I want to show an image with the link on the menubar. My code

  • 0

I want to show an image with the link on the menubar. My code is as below:

  <a href="#" class="login" title="Login"></a>

The login class in css is as below:

   .login{background: url(../img/user.png) no-repeat 6px center;} 

But, I am not able to view the image in the browser. If I tried like

   <a href="#" class="login" title="Login">Login</a>

then image appears in the background. But I want to use only image and not the text. how can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:16:38+00:00Added an answer on June 15, 2026 at 2:16 pm

    You’ll have to set dimensions on the a tag, and set it to display: block;.

    .login {
      background: url(../img/user.png) no-repeat 6px center;
      width: 100px;
      height: 100px;
      display: block;
    }
    

    Of course replace dimensions with the correct ones.

    Alternatively you could put the image directly into the a tag like so:

    <a href="#" class="login" title="Login"><img src="../img/user.png" /></a>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want show tooltip with image tag and i have written code like below
<a class=imageToAppend href=img/image.jpg>Click image to show</a> <a class=imageToAppend href=img/image1.jpg>Click image to show</a> <a class=imageToAppend
I want to show a a DIV on image / link hover and i
I have an anchor element like this: <a href=/link-to-image/ rel=attachment wp-att-7076><img src=/uploads/img.jpg alt= title=
I have a background image that I want to show after the top header.
I want to show an image after there is hover on link for atleast
I want an image slider similar to what is shown in the link below.
I want to show image in a crystal report. Scenario is something like this.
I want to show an image view for three like on/off,if any one have
I want to show the image that mobile phone's camera its taking on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.