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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:57:01+00:00 2026-06-12T17:57:01+00:00

I have 3 divs in one row <div id=left></div> <div id=middle></div> <div id=right></div> here’s

  • 0

I have 3 divs in one row

<div id="left"></div>
<div id="middle"></div>
<div id="right"></div>

here’s how its layed out

I need the middle div to stay a fix width, but the left and right divs to shrink in as the screen gets smaller, heres an example

how would I write out the css?

this is how I have it so far, and by the way the 3 divs are wrapped in another div#mid

#mid {
max-width: 100%;
min-height: 395px;
max-height: 395px;
position: relative;
background-color: #F00;
display: block;
}

#left {
min-width:35%;
min-height: 395px;
max-height: 395px;
background-color: #00F;
position:relative;
float: left;
}

#middle {
min-width:30%;
min-height: 395px;
max-height: 395px;
background-color: #3F0;
position:relative;
float: left;
}

#right {
min-width:35%;
min-height: 395px;
max-height: 395px;
margin:0;
padding:0;
background-color: #0FF;
position:relative;
float: left;
}

if anyone can help me out id really appreciate it, thanks in advance!

  • 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-12T17:57:02+00:00Added an answer on June 12, 2026 at 5:57 pm

    Here I’ve answered this question, you can do it like this : My Fiddle

    <div class="container">
    <div class="first"></div>
    <div class="static"></div>
    <div class="third"></div>
    </div>​
    

    CSS

    .container {
        display:-webkit-box;
        -webkit-box-orient:horizontal;
        -webkit-box-align:stretch; 
         display:-moz-box;      
        -moz-box-orient:horizontal;
        -moz-box-align:stretch;
        display:box;
        box-orient:horizontal;
        box-align:stretch;   
        color: #ffffff;    
    }    
    
    div {
        height: auto;
    }
    
    .first {
        background-color: #546547;   
    }
    
    .static {
        background-color: #154d67;
        width: 300px;  
    }
    
    .third {
        background-color: #c00000;   
    }
    
    .first, .third {
        -webkit-box-flex:1.0;
        -moz-box-flex:1.0;
        box-flex:1.0;
    }
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two divs floated next to one another: <div id=parent> <div id=child_1 style=float:left>
I have two divs one inside another, i would like to overlap one div
i have two divs one floated to the left and the other to the
I have 2 divs, one positioned absolutely right: 0 and the other relatively positioned
I have two divs, left and right, depending on the datas retrieved from the
I have four divs in a row and whichever one you click on, the
I have 2 divs next to each other. The left hand one is 600px
Imagine that we have some divs like that <div class=row chapter node=1>Chapter 1</div> <div
I have two divs one inside another. I have given some border to both
OK so what would happen if I have 2 divs (one containing text, the

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.