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 am trying to do read more feature with JQuery's slideToggle thing but
everyone,I am new to PP but got stuck in a problem when importing NumPy
everyone.I wanna include javascript in the html(webpy templates),but it doesn't work.the javascript code in
everyone..i want after i type 0203-ED in textfield ...two character behind that text can
Everyone who's done any web application development in Scala knows that you can use
everyone. I'm trying to record the movement from a person, frame to frame using
everyone I got problem here I need to update a plist data in a
everyone! I've been at this for a while, and I'm not sure how this
everyone, I made a shooting game just like 1942(classic shooting game),but here's the question,
Everyone is saying how .NET Remoting is being replaced by WCF, but I'm wondering

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.