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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:32:58+00:00 2026-05-23T13:32:58+00:00

My setup is like this. <div id=header> <div id=heading>Title</div> <div id=flow> Enter Something: <input

  • 0

My setup is like this.

<div id="header">
<div id="heading">Title</div>
<div id="flow">
Enter Something:
    <input type="textbox" size="30" id="id" class="class" onkeyup="dosomething()" />
    <input id="show" type="button" value="Add" onclick="dosomething()">
    <input id="hide" type="button" value="Search" onclick="dosomething()">
    <input id="hide1" type="button" value="Clear" onclick="dosomething()">
    <input class="floatr" type="button" value="Val" onClick="dosomething()">
    <input class="floatr" type="button" value="Val" onclick="dosomething()">
</div>


<div id="flow1">    
    <textarea readonly="readonly" cols="56" rows="1" value="" id="Search" class="allSearch"/></textarea>

    <input class="floatr" type="button" value="val" onClick="dosomething()">
    <input class="floatr" type="button" value="val" onClick="dosomething()">
</div>  

</div>

I did try this from a questions asked before but it doesn’t seem to work. In chrome and firefox it works fine without the overflow and white-space, but I need to it work in IE6 and IE8(I know they are old but let’s not go there, I don’t like working in it myself)
HTML+CSS: How to force div contents to stay in one line?

overflow: hidden;
white-space: nowrap;

I am using jquery to show and hide depending on the action of the user. Not sure if that is messing it up.

When I go to developers mode in IE two divs flow and flow1 are two rows instead of one.
Any suggestions?

Edit: CSS part

#heading
{
    text-align:center;
    font-size:20px; 
}

#header
{
    background-color:#85C2FF;
    padding-bottom:.6em;
    padding-left:.4em;
    padding-right:.4em;
    white-space: nowrap;
    overflow: hidden;
}

.floatr
{
    float:right;
}

I did try putting the whitespace and overflow within #flow div but with no result. The javascript part is LONG(VERY LONG).

@Mrchief I don’t think the js has any relevance. Without clicking anything the page doesn’t load properly. The CSS is included now.

@Phil
This is how it should look like – it does in chrome
This is how it should look like - it does in chrome

This is how it looks like in IE. See the blue border that's the div flow. It's two rows. I am trying to display it in one row.

This is how it looks like in IE. See the blue border that’s the div flow. It’s two rows. I am trying to display it in one row.
Hope that’s a bit clear now.

Edit: Figured out the problem.

The ‘floatr’ css is the problem. If I delete that everything moves the left and in one line. With float:right it moves to the right but to the next row. I am guessing that IE specific problem. Any insights?

OK. Figured it out! The problem with this is when float:right is read IE doesn’t know which line to start the float on so it moves to the next line. To solve the problem you can do this. Put the float code FIRST!

<div id="flow">
<input class="floatr" type="button" value="Val" onClick="dosomething()">
<input class="floatr" type="button" value="Val" onclick="dosomething()">
    Enter Something:
        <input type="textbox" size="30" id="id" class="class" onkeyup="dosomething()" />
        <input id="show" type="button" value="Add" onclick="dosomething()">
        <input id="hide" type="button" value="Search" onclick="dosomething()">
        <input id="hide1" type="button" value="Clear" onclick="dosomething()">

</div>

Hope this helps someone. I have been banging my head over this for the last two hours. Thanks for all your help guys.

  • 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-23T13:32:59+00:00Added an answer on May 23, 2026 at 1:32 pm

    It’s an internet explorer issue. Put the float statements first like this.

    <div id="flow">
    <input class="floatr" type="button" value="Val" onClick="dosomething()">
    <input class="floatr" type="button" value="Val" onclick="dosomething()">
        Enter Something:
            <input type="textbox" size="30" id="id" class="class" onkeyup="dosomething()" />
            <input id="show" type="button" value="Add" onclick="dosomething()">
            <input id="hide" type="button" value="Search" onclick="dosomething()">
            <input id="hide1" type="button" value="Clear" onclick="dosomething()">
    
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have my PHP class variables set up like this: class someThing {
I have a ToggleButtonBar with a DataProvider setup like this: <mx:ToggleButtonBar itemClick=clickHandler(event); selectedIndex=0> <mx:dataProvider>
Our VSS setup is like this: We have a set of unique folders with
imagine this situation: SetUp in the default MVC3 project, create a new complex type
If I have a folder structure set up like this: ~/Projects emacs package1 package1-helpers
I have a ComboBox that I set up like this: this.cmbCustomerJob.DisplayMember = display; this.cmbCustomerJob.AutoCompleteMode
I have a regular .NET Windows Forms treeview control. The nodes are setup like
I would like to setup a admin page (ASP.NET/C#) that can add IIS host
I'd like to setup a WCF service to send emails. The System.Net.MailMessage doesn't seem
I'd like to setup Tomcat on Windows and have authentication in my web application

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.