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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:00:20+00:00 2026-05-24T16:00:20+00:00

jsFiddle : How do I make div2 + Button2 fill the rest of the

  • 0

jsFiddle:

How do I make div2 + Button2 fill the rest of the window width if I use pixel metric on column 1 and 3?

I’ll use that to format a form making a textbox to change the size as two other fields are fixed.

Thank you.

CSS

td { border:solid 1px #000; float:left; }

#div1 { width:100px; border:solid 1px #000; float:left; }
#div2 { border:solid 1px #000; float:left; }
#div3 { width:100px; border:solid 1px #000; float:right; }

#Button1 { width:100% }
#Button2 { width:100% }
#Button3 { width:100% }

HTML

<div id="div1">
    <button id="Button1">Button 1</button>
</div>
<div id="div2">
    <button id="Button2">Button 2</button>
</div>
<div id="div3">
    <button id="Button3">Button 3</button>
</div>
  • 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-24T16:00:21+00:00Added an answer on May 24, 2026 at 4:00 pm

    As far as I know, there are only two ways of doing this:

    1. Using tables – most people do not like this idea. I for one, think it’s fine for overall layout as long as you don’t go overboard with nested tables and stuff. Kalle’s answer covers this option

    2. Using absolute positioning specifying all four corners. I only recently discovered this method and it works beautifully. It works in all major browsers.

    Something like this:

    #div1 { position:absolute; left: 0px; width: 100px; border:solid 1px #000; }
    #div2 { position:absolute; left: 100px; right: 100px; border:solid 1px #000; }
    #div3 { position:absolute; right: 0px; width:100px; border:solid 1px #000; float:right; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

jsFiddle: http://jsfiddle.net/mYkjQ/ How do I make div2 + Button2 fill the rest of the
I would like to make use of embedded base64 images in ie7. Example: http://jsfiddle.net/mfPnK/
http://jsfiddle.net/mretchin/JEVuX/40/ That's my code. I'm trying to make an input box that takes a
There is this triangle that is made with css: http://jsfiddle.net/W3hNx/1/ How can I make
I want to make this table http://jsfiddle.net/B7SVK/ from 4 column to single column because
I want to make a menu that.. does this: http://jsfiddle.net/8U9fy/1/ ( didnt want to
http://jsfiddle.net/JamesKyle/re73T/ Trying to make a class switcher that will do the following: On Load
http://jsfiddle.net/nicktheandroid/F8v2c/3/ I'm trying to make a radial gradient that flows seamlessly between 2 sibling
Demo: http://jsfiddle.net/waitinforatrain/9JU5b/ I'm trying to make a notification icon thing that looks like this:
Is there any way to make this solution IE6 and IE7 compatible? http://jsfiddle.net/kirkstrobeck/sDh7s/1/ Pulled

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.