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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:13:24+00:00 2026-06-04T02:13:24+00:00

I have an input ( type=’submit’ ) in a div with a fixed width

  • 0

I have an input (type='submit') in a div with a fixed width (but not fixed height). In all browsers the text wraps, except for Opera, in which all the text is on a single line, and the overflow is hidden (even setting overflow:visible doesn’t remedy this).

However, I discovered something bizarre, when I attempted to select the contents of the input, it started to marquee scroll! Is this some oddity in Opera? I can’t find it documented anywhere. I can’t replicate this behaviour on any other browser. We do have some jQuery on the site, but no scrolling marquees, and nothing affecting this element. My head is full of WTF at the moment!

HTML:

<li class="last">
  <input id="product-renewal" name="product" type="submit" value="Quite a long bit of text in here"/>
</li>

CSS:

li.last{
  flat:left;
  display: list-item;
  list-style-type:none;
  text-align:left;
}
input{
  border: 0;
  margin: 1px 0;
  padding: 125px 0 10px;
  white-space: normal;
  overflow: visible;
  width:150px;
}

I’ve snipped a bit, but this is everything that should be relevant.

I’ve check with JS turned off: it still does it, so this is definitely some native opera behaviour.

  • 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-04T02:13:25+00:00Added an answer on June 4, 2026 at 2:13 am

    Wow, this is some funky behavior. I mean, I guess it’s cool since it’s showing you the full text on the input button, but it’s pretty quirky. I assume you’re replacing the button with an image and you need it to be that specific size?

    This gives me the same behavior in Opera and Chrome. Didn’t test beyond that.

    http://jsfiddle.net/nLS9M/2/

    <ul>
        <li class="last">
            <button id="product-renewal" name="product" type="submit">Quite a long bit of text in here</button>
        </li>
    </ul>
    
    li.last{
      flat:left;
      display: list-item;
      list-style-type:none;
      text-align:left;
    }
    button{
      border: 0;
      margin: 1px 0;
      padding: 125px 0 10px;
      white-space: normal;
      overflow: visible;
      width:150px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some input (text type). I'd like to the same behavior for all
So I have this code: jQuery('div[class=someClass] :input:not(:button)').each(function() { if (input type is drop-down) {
I have an input of type text , from which I have already entered
I have an INPUT element of the TEXT type and I want to perform
I just wanted to ask. I have text input to allow users to type
I have a input type like this: <input name=adult-count type=text data-perunit=2500 data-maxunits=5 class=up-down-spinner value=0>
I have set input type to be numberdecimal but also want to populate the
I have a edit text, whose input type is number. in emulator its working
I have a input type text where the users enter numeric codes separated by
I have input[type=text] where user can type only alpha, space and comma. I need

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.