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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:38:46+00:00 2026-05-23T08:38:46+00:00

Yes, I know this seems like the same question yet again, but give me

  • 0

Yes, I know this seems like the same question yet again, but give me a chance…
I’m trying to create something similar to an http address box and “go” button:

[input box – width of whole window minus size of right button] [go button]

Very easy with a table (works with a <form> and input boxes too)

<table width="100%"><tr>
<tr>
<td>free text goes in here and takes as much space as available! free text goes in here and takes as much space as available!</td>
<td width="1"><a href="">GO</a></td>
</tr></table>

Before you answer, note that critical to a CSS “success” is NOT to set the width of the GO button as fixed! I know how to do it in CSS with a fixed width float right, but … This would means that if the “GO” text changes to “RUN” or the font changes, I’ve to manually re-set the width of the fixed right part. That makes the whole point of CSS (IMNSHO) pointless, esp. if a table is smart enough to do this.

  • 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-23T08:38:46+00:00Added an answer on May 23, 2026 at 8:38 am

    Demo fiddle

    HTML:

    <form action="">
        <fieldset>
            <button type="submit">GO</button>
            <span>
                <input type="text" />
            </span>
        </fieldset>
    </form>
    

    CSS:

    fieldset {
        border: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    button {
        float: right;
    }
    span {
        display: block;
        overflow: hidden;
        padding-right: 10px;
    }
    input {
        width: 100%;
    }
    

    Tested on Win7 in IE7, IE8, IE9, Opera 11, Chrome 12, FF 4, SafariWin 5.

    With thanks to thirtydot’s recent revision.

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

Sidebar

Related Questions

yes I know, this seems to be the same question as asked thousands of
First, yes I know about this question , but I'm looking for a bit
I know the Sales pitch answer is yes to this question, but is it
I searched the site but it seems like this exercise from the book Learn
I'm working with a large (270+ project) VS.Net solution. Yes, I know this is
I can't find a straightforward yes or no answer to this! I know I
(Yes I know I can call Java code from Scala; but that is pointless;
I´m trying to code a tooltip (Yes I know, I have my reasons to
I'm trying to get regexp to match some nested tags. (Yes I know I
Yes, this is another question about my game engine, which is coming along very

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.