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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:54:41+00:00 2026-05-24T03:54:41+00:00

I have a login page that has 2 tags that have a background image

  • 0

I have a login page that has 2 tags that have a background image defined in HTML as:

<div>
    <button type="submit" name="loginButton" value="App1" class="login-button app1-logo-bkgrd align-left" />
    <button type="submit" name="loginButton" value="App2" class="login-button app2-logo-bkgrd align-right" />
</div>

I have the CSS classes defined as:

.align-left {
    float: left;
}

.align-right {
    float: right;
}

.app1-logo-bkgrd {
    background: transparent url('images/app1logo.png') top left no-repeat;
    width:220px;
    height:180px;
}

.app2-logo-bkgrd {
    background: transparent url('images/app2logo.png') top left no-repeat;
    width:220px;
    height:180px;
}

.login-button 
{
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
}

I am using <!DOCTYPE html>

For some reason the second button (with value=”App2″) gets magically repeated in IE9 standards mode whereas the same HTML/CSS works fine in FF5.

If I hit the compatibility mode button it then displays correctly (IE has switched to IE7 document type – so says the dev tools).

If view source on IE 9 when the problem occurs then it shows be only one instance of the 2nd button; however using dev tools and using the selector feature it reckons there is another App2 button just after the form.

I tried removing the 1st (value=”App1″) button and changing the remaining button to use the same align-left class but it still gets repeated for now reason.

Anybody have any suggestions as to what might be causing the problem?

  • 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-24T03:54:42+00:00Added an answer on May 24, 2026 at 3:54 am

    This is actually caused by a bug in IE9.

    If you use a self-closing button tag which is styled with a background image then it will appear repeated in the page but only 1 of the images will be clickable. Not sure if the containing <div> is relevant I haven’t tried without.

    In my case where I had 2 buttons the 2nd button effectively fixed the bug for the 1st one which is why it was so confusing, i.e. if I swapped the order of the buttons then one that previously broken one worked.

    The workaround is to use <button></button> syntax even though there is nothing between the open and close tag when using a background image in this way.

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

Sidebar

Related Questions

So, I have a simple login page that has a light green background, and
I have a panel in my master page that has textboxes for users login.
I have a simple page that has a (non-Prototype) JavaScript pop-up for login. It
I have an Image in my login page that I want to show all
I'm new to web development. I have a login.aspx page that has an Asp.Net
I have a login page that has several textboxes on the page, one of
I have an app with a login page that has three fields for three
I have a Login page that captures User input like this. MD5calc ss =
I'm using ASP.NET MVC 2 and have a login page that is secured via
So, I have set up a login page that verifies the user's credentials, and

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.