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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:13:10+00:00 2026-06-11T02:13:10+00:00

Not the most self explanatory title I’ve ever authored. What I’m trying to do

  • 0

Not the most self explanatory title I’ve ever authored.

What I’m trying to do (see this fiddle) is for the text field and button to remain positioned right next to eachother (no margins), with the button to the right, and thetext field covering 100% of the remaining width of the container that the button isn’t occupying. The relationship between the two should remain even if the containing element is resized.

Browser requirements: IE9+, Firefox, Webkit

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

    Check out this little demo: little link. The code is pretty-self explaining, but here’s the basic idea:

    <div class = "container">
        <div class = "cell">
            <input type="text" placeholder="Glee's awesome!" />
        </div>
        <div class = "cell" style = "width: 1px"> <!--make sure it's only large enough to fit the button-->
            <button type="submit">Glee</button>
        </div>
    </div>
    

    CSS:

    .container {
        display: table;
        width: 100%;
    }
    .cell {
        display: table-cell;   
    }
    

    Hope that helped!

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

Sidebar

Related Questions

I'm trying to run this test: self.assertRaises(AttributeError, branch[0].childrennodes) , and branch[0 ] does not
This is most likely not an easy one but here is the situation: I
So at this moment (but most likely not for long) Reddit, Meetup, Fark, LinkedIn,
I am trying to find a universal way to expand most if not all
This not a programming question but Most of the programmers using Eclipse should have
I'm not the most disciplined dev, dont know standards and am self-taught so bear
Yes, this will be a homework (I am self-learning not for university) question but
I believe the title is pretty self-explanatory but still, maybe, I should ask in
So, that's what I'm trying to do - pretty self-explanatory actually : Initiate X
Not quite understanding why I am getting this trace error: Traceback (most recent call

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.