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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:40:37+00:00 2026-05-11T18:40:37+00:00

I have 3 blocks: one wrapper and 2 other inside the wrapper. Inside-blocks have

  • 0

I have 3 blocks: one wrapper and 2 other inside the wrapper. Inside-blocks have same size.

Wrapper is elastic and its width is being changed during window resizing. 2 blocks inside wrapper are elastic too. Each of these 2 inside blocks has min-width property.

When wrapper is wide enough inside blocks are positioned in one line one after another. But when wrapper becomes too narrow blocks are positioned in 2 lines.

The final aim you can see on the picture below:

alt text http://img155.imageshack.us/img155/9006/nessview.png

Important moment: as you can see on the third block, when blocks are positioned in 2 lines they are alined at center.

Question: is it possible to do this make-up using just html and css?

  • 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-11T18:40:38+00:00Added an answer on May 11, 2026 at 6:40 pm

    Something like this works in IE 7 & FF 3 for me:

    <div style="width: 49%; min-width: 300px; float: left; background: red;">Test</div>
    <div style="width: 50%; min-width: 300px; float: left; background: blue">Test</div>
    

    Problem is it won’t center align when shrunk, and IE 6 hates min-width.

    Still looking into center align…

    Firefox only:

    <div style="text-align: center">
      <div style="display: inline-block; width: 49%; min-width: 300px; margin: 0 auto; background: red;">Test</div>
      <div style="display: inline-block; width: 50%; min-width: 300px; margin: 0 auto; background: blue;">Test</div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML logical blocks : The first one is a sortable
So I have three different blocks inside my right sidebar region. What I would
I have several blocks of the following code that each use there own matrix.
The common sense tells that the Doxygen comment blocks have to be put in
I have a custom XML file format which can contain blocks of code within
What libraries and/or packages have you used to create blog posts with code blocks?
I have one thread that inserts into the queueStream (not shown here) and FlowController
I have a page with one div and 1 H1 tag in the div;
I have a centered layout using margin:0 auto; , but one of my child
Its a bit of a tough one to explain really. this is it: <div

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.