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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:56:12+00:00 2026-06-17T08:56:12+00:00

I have a button rendering problem. I’m in IE9 quirks mode. It’s legacy code

  • 0

I have a button rendering problem. I’m in IE9 quirks mode. It’s legacy code inside html frames (not iframes) and I have no choice about quirks mode for the present. I have stripped out ALL css and javascript so I believe I’m down to default IE9 rendering.

The problem is this: The padding to the left and right of the button text seems to be proportional to the length of the text. That is, the longer the text, the wider the padding. The client insists on certain buttons having up to 20 characters of text, and those buttons are building in so much dead space inside the button to left and right of the text (i.e., padding-left and padding-right so to speak) that the layout is badly broken.

Since the button text varies from 7 to 20 characters, I can’t easily do fixed-width buttons, either. What I’d like to accomplish is fixed padding-left and padding-right. The best I can come up with is an inline width in ems, e.g.,

<input value="The Big Whateverest" type="button" style="width:11em;">

I tried padding/margin with inline styles but that only makes things worse. Any suggestions?

EDIT: According to the solution, part of the puzzle is that the button is inside a table cell. If you’re here because you need to know this, be sure to follow the link in Adam’s solution to understand the full issue.

  • 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-17T08:56:12+00:00Added an answer on June 17, 2026 at 8:56 am

    You can adapt this solution to your situation by changing .button to input, like this:

    <style>
    input {
        padding: 0 .25em;
        width: auto;
        overflow:visible;
    }
    </style>
    
    <!--[if IE]>
    <style>
    input {
        width: 0;
    }
    </style>
    <![endif]-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an add this button on the website that is rendering a border
I have some weird problem in rendering some xhtml in IE 8 http://img709.imageshack.us/i/scrj.png/ .
I think I have a problem with multiple clicks on the same button. I
I'm just getting started using Mustache and I have this rendering problem. I send
I have a problem when rendering my input text elements. If i add the
My problem is with my jade layout file not rendering correctly. The body is
I have problem with rendering forms in Twig. I'm trying to embed a collection
I have a Problem: I'm rendering a BufferedImage in a JFrame. Then i add
I have a problem with web.py. Basically the user clicks a button, which makes
since they have same rendering engine, this problem shows in both. it works great

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.