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 4259618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:48:32+00:00 2026-05-21T05:48:32+00:00

everyone. I’m trying to give a text link a background image but I’m not

  • 0

everyone. I’m trying to give a text link a background image but I’m not having any luck, I’ve got no image appearing. I was wondering if someone one could tell me if my code is wrong and what I can do to correct it. Thanks for any help in advance.

Here’s my css code, hlink and home are ids, and home is my positioning of my link text

#hlink:link{
        background-image: url("../media/taboff.gif");
        color:#000000;
        text-decoration:none;
}

#hlink:visited{
        color:#000000;
        text-decoration:none;
}

#hlink:hover{
        /*background-image:url("../media/tab2.gif");*/
        text-decoration:underline;
        color:#EF504B;
}

#hlink:active{
        text-decoration:underline;
        color:#EF504B;
}

#home{
        position:absolute;
        font-size:2em;
        top:270px;
        left:300px;
        text-align:center;

and here is my html code

<div id="home">
        <a id="hlink" href="midterm.html">Home</a>
</div>

Edit: I just want to say thank you all so much for helping me, every single one of you have saved my life, I don’t know if edits notify everyone who has answered, but again, thanks so much. Aside from some missing code, my biggest problem was with the image itself that I was using so that’s my next issue to correct. I tested out a different image and it worked 100% so thanks for that everyone. I’m also relatively new to this, I’m a freshman in college and have only been doing this for a few weeks(I also have a terrible professor but that’s another story for another time) but I’m glad to have found such a helpful community, hopefully one day I’ll be able to contribute myself.

  • 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-05-21T05:48:33+00:00Added an answer on May 21, 2026 at 5:48 am

    Works for me: http://jsfiddle.net/GTHyU/

    My guess is that perhaps you have made your url() relative to your HTML page instead of your CSS file? Try it with an absolute URL first and see if it starts working, then figure out the appropriate relative path you need based on the location of the CSS file.

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

Sidebar

Related Questions

everyone! I'm quite new to regular expressions, but I like them, A LOT! Call
Everyone, I have really tried, but I can't find out how to upload photos
everyone! I'm trying to send mail in ASP.NET web-site. I have smtp configuration section
everyone. I've got a string looks like var s = 2qf/tqg4/ad(d=d,s(f)d) And I've got
Everyone projects once in a while: var c = dc.Products.Select( p => new {p.id,
Everyone use lot of List. I need to iterate over this list, so I
Everyone knows that there is cache in session. This cache generally could be cleared
everyone... I'm new to C# and such languages... I've read two articles by Skeet,
everyone. I have BMP specification from MS ( http://msdn.microsoft.com/en-us/library/dd183383.aspx ) and I want to
I have some data like this: 1 2 3 4 5 9 2 6

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.