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

Ask A Question

Stats

  • Questions 107k
  • Answers 107k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I guess I'll be the guy that answers "Emacs" this… May 11, 2026 at 9:07 pm
  • Editorial Team
    Editorial Team added an answer Think about it like this after you run ExecuteReader the… May 11, 2026 at 9:07 pm
  • Editorial Team
    Editorial Team added an answer You might also want to check out XML Unserializer http://pear.php.net/package/XML_Serializer/redirected May 11, 2026 at 9:07 pm

Related Questions

I am having trouble with my Visual Studio 2005 IntelliSense for some time now.
On a PHP-based web site, I want to send users a download package after
I am facing the problem of having several integers, and I have to generate
I have a class with a static method that looks roughly like: class X
Does anyone have, or know of, a binary patch generation algorithm implementation in C#?

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.