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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:27:29+00:00 2026-06-05T19:27:29+00:00

Two days ago I spontaneously bought myself a domain. The day before that, I

  • 0

Two days ago I spontaneously bought myself a domain. The day before that, I hardly even knew what a domain really was. Since then, I’ve been trying to teach myself HTML for the very first time. Basically what I’m trying to say is, I’m very new – and will probably be poor in my explanations.

I just succeeded in making an ‘image-button’, sorta. It’s where I make a button-like image and then use it as navigation on my website (just like a regular link). My issue is that the link ‘border’ itself is bigger than the image, so you can press an inch outside the image itself and it will work. How do I make the invisible link ‘border’ the same size as the button?

This is my site:
http://www.djeveln.com

On the test page (djeveln.com/test) is where I test things. There’s the button I’m talking about, in case you can’t understand my explanation very well.

Here’s my HTML:

<a class="ButtonLink" href="http://www.djeveln.com" title="Home"> 
<img src="/images/button.png" class="TestButton"></a> 

Here is the CSS I use for the image position and size:

img.TestButton { /* Dette linker til selve størrelsen av knappen (bildet)*/ 
    position: absolute; 
    width: 100px; 
    height: 75px; 
    top: 400px;
    right: 250px; 
}

Hope you can help me! 😛

  • 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-05T19:27:31+00:00Added an answer on June 5, 2026 at 7:27 pm

    Your button image contains a large transparent area (with the actual button more or less in the center), and that’s what is causing the “borders”.

    Although there are CSS workarounds for that, I’d recommend you just open the image in Photoshop (or any other image editor), and crop the transparent area away. Make your image the exact size of your button.

    One more tip, that can make your life way easier as your learn: use a debugging tool like the Chrome Developer Tools, or Firebug (if you’re on Firefox). With those, you can inspect any element on your HTML (right click it and choose “inspect”), check the CSS applied for them (and also modify it on-the-fly for testing), and much more. That’s how I spotted the transparent border on your image.

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

Sidebar

Related Questions

I'm having a recent issue since two days ago. Before that I was running
So as of two days ago, i had myself a shiny new SVN server.
[Major Edit based on experience since 1st post two days ago.] I am building
I'm getting an error on some code that two days ago was running fine.
Since two days ago I started making my own simple classes from scratch, descended
Since I updated two days ago my Android SDK to version API 14 I'm
In the last two days, ive run across code that has php echo'd variables
I am trying since two days to install OpenCV 2.3.0 or 2.3.1 on my
Two days ago I was asked this question in an interview for Data Analyst
I started learning the scala actors framework about two days ago. To make the

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.