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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:13:36+00:00 2026-05-15T16:13:36+00:00

I have am using an image button instead of text for a submit button

  • 0

I have am using an image button instead of text for a submit button here and I have used text-indent -9999px to “hide” the text value. However, in IE7 that text is still showing over the button.

I tried making the text transparent but that didn’t help.

Is there something I am missing here?

HTML:

<form action="news.php" method="post">
            <fieldset>
            <input type="text" id="your-email" name="your-email" value="YOUR EMAIL ADDRESS" onfocus="if (this.value=='YOUR EMAIL ADDRESS') this.value='';" />
            <input type="submit"  value="::Submit Query::" id="red-submit" />
            </fieldset>
</form>

Here is the CSS:

input#red-submit                    {
                                width: 90px;
                                height: 30px;
                                border-style: none;
                                text-indent: -9999px; 
                                position: relative;
                                top: 5px;
                                left: 10px; 
                                cursor: pointer;
                                background-color: transparent;
                                background-image: url(../_images/btn_submit-red.png); 
                        }

I would appreciate some help getting that text to move out of the way.

Thanks.

  • 1 1 Answer
  • 1 View
  • 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-15T16:13:37+00:00Added an answer on May 15, 2026 at 4:13 pm

    Since IE is stupid and whatnot, it wouldn’t surprise me if text-indent only affects actual text nodes, and the button’s value would seem not to be a text node.

    You could try using the <button> tag instead, to see if that got you better results, but no promises.

    EDIT: Here’s an article that deals with the same issue, and offers a solution.

    input.button{
        width:114px;
        height:37px;
        border: none;
        background: transparent url(images/submit_btn.gif) no-repeat center;
        overflow: hidden;
        text-indent: -999px;
    
        /* The fix:*/ 
        font-size: 0;
        display:block;
        line-height: 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that uploads an image using JavaScript, as seen here .
I have a button image I'm using as a background image for some links.
I am having an image button as I have attached here. The respective code
I am using ASP.NET 2.0. I have Image and ImageButton Side by Side by
I currently have a menu using hovering image maps that works in Firefox, IE,
I have tried to upload image using FileTransfer.upload in phonegap api.But I am getting
I have given a table background image using css background-image property. The cells are
I have a greyscale image which was created from a RGB image using farmula:
I have an .aspx file that outputs an image using the following methods: Server.MapPath(somefile.png)
Is it possible to have transparent background image using CSS3? background: url(../img/bg_paperlines.jpg) repeat-x; Using

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.