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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:17:56+00:00 2026-06-07T16:17:56+00:00

I want a container to be filled in a single line in the following

  • 0

I want a container to be filled in a single line in the following way:

  • 60px fixed yellow

And then of the remaining space:

  • 20% blue
  • 60% black
  • 20% red

This is what I have so far (doesn’t work):

CSS

body {
    background-color: #fff;
    padding: 0px;
    margin:100px;
}

.container {
    overflow: hidden;
    padding: 0px;
    margin: 0px auto;
    width: 90%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 0px #ccc;
}

.blue_container {
    background-color: blue;
    width: 20%;
    float:left;
}

.black_container {
    width:60%;
    float:left;
    background-color: black;
}

.red_container {
    width: 20%;
    float:left;
    background-color: red;

}

.fixed_conatiner {
    float:left;
    background-color: yellow;
    width: 60px;
}

.transparent_container[type="fixed"] {
    padding:0px;
    margin:0px;
    width: 60px;

}

.transparent_container[type="avazmishe"] {
    padding:0px;
    margin:0px;
}

HTML

<div class="container">
    <div class="transparent_container" type="fixed">
        <div class="fixed_container"><br/></div>
    </div>
    <div class="transparent_container" type="resizable">
        <div class="blue_container"><br/></div>
        <div class="black_container"><br/></div>
        <div class="red_container"><br/></div>
    </div>
</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-06-07T16:17:59+00:00Added an answer on June 7, 2026 at 4:17 pm

    You were on the right track, all you have to do is subtract that fixed containers width from your fluid container with a left margin. Try this:

    .transparent_container {
        margin-left: 60px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create such layout: +-----------container-----------+ | +-----fixed-height-div-------+| | +-------fixed-height-div-----+| | +-fill-height-scrollable-div-+| | +-fixed-height-bottom-div-+| +---------end-container-------+ The problem
I want to add to div#container a div inside another div and then get
I have a container div with fixed size and overflow: scroll, it's filled with
I have a container filled with pairs. I want to iterate in it using
I want to use Container.ItemIndex in my Code Behind in my function in OnCustomColumnDisplayText
i have some element in my container and want to save all properties of
I'm working on a album viewer. At the top I want a horizontal container
I want to position a comments container relative to the post container . But
I want to render a profile user container that contains a list of labels
I want to add a background color to the container(div.checkbox_db), when the checkbox(input.check-group) is

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.