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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:39:02+00:00 2026-05-25T09:39:02+00:00

maybe a little odd, but I’m stuck nevertheless: I have an input type=image which

  • 0

maybe a little odd, but I’m stuck nevertheless:

I have an input type=”image” which acts as a button within a software. I have to tweak the button for a template.

<input class="tweaked" src="" title="add to basket" alt="add to basket" type="image">

The problem:

  • I cannot change the type, because the software seems to “bind” to input type=”image”
  • If I just omit the src attribute I get failed to load on IE and other browser

Question:

Is it possible to have an input type=”image” without src attribute looking nice across browsers, that is without the “failed to load image”-icon? If so, how can it be done?

Thanks for help.

  • 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-25T09:39:03+00:00Added an answer on May 25, 2026 at 9:39 am

    One option is to make the source of the image be a 1×1 clear pixel PNG. It’s quick and dirty, and it will most likely work. You may even already have such a file that the site is downloading.

    If, however, you don’t want to add another HTTP request, perhaps you can set the source to be your image sprite, then in your CSS align the background so that the sprite is way, way off the image. This will get rid of the 1x1clear.png file, but it may degrade in a weird way in some cases.

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

Sidebar

Related Questions

It maybe a little naive question but I have been trying to understand how
Maybe a little tricky, but I wonder why. In System.Linq.Enumerable.cs of System.Core.dll we have:
I have been thinking of maybe writing a little tool that logs into SO
Maybe this sounds a little bit crazy, but I need to come up with
I have a little dilemma that maybe you can help me sort out. I've
Maybe I just don't know .NET well enough yet, but I have yet to
Ok the title maybe a little confusing. I have a database with the table
Maybe this is a little unconventional question but I'd like to hear an answer
this maybe a little trivial but I'm puzzled with such problem. I want to
Maybe I'm little morose, but I do not feel comfortable with that book. Anytime

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.