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

  • Home
  • SEARCH
  • 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 5964955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:31:33+00:00 2026-05-22T19:31:33+00:00

I have 3 floated left objects, the one on the left will change in

  • 0

I have 3 floated left objects, the one on the left will change in size all the time. The right on will always be fixed in size. The center one I want to fill up the space between the two outer divs. Right now that’s not working though. If I set the width of the center div to 100% it gets way too big.

Not sure how this should be handled.

edit: code sample

<div style="width:1000px">
  <div style="float:left;">1</div>
  <div style="float:left;">Lots of text in here that can be any size....</div>
  <div style="float:left; width:100px;">Date/Time</div>
</div>

The first div is dynamic in size. If the number is 10 it’s going to take up more space than the number 1. The second div will be dynamic as well, I want that to take up whatever space isn’t take up by the first and third 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-22T19:31:34+00:00Added an answer on May 22, 2026 at 7:31 pm

    HTML

    <div style="width:1000px">
      <div id="left">1</div>
      <div id="right">Date/Time</div>
      <div id="center">Lots of text in here that can be any size....</div>
    </div>
    

    CSS

    #left {
        float: left;   
        width: 20%;
    }
    
    #center {
        margin-left: 20%;
        margin-right: 100px;
    }
    
    #right {
        float: right;
        width: 100px;   
    }
    

    See fiddle.

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

Sidebar

Related Questions

I have 3 divs all floated left. I want to set the second div
I have three span tags: One is floated left (A) and the other two
I have a page with 3 columns, one floated to the left, one to
I have a simple layout with content floated-left and a fixed-positioned menu on the
I have floated two divs left but the div on the right has a
I have two elements on the same line floated left and floated right. <style
I have a layout where there will be 6 Divs floated left to make
I have two ul's (.listone and .listtwo respectfully) floated left and the other right.
I have a sidebar that is floated left, and then a main content area
I have a div named footerWrap, which contains 3 unordered lists. I floated left,

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.