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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:09:26+00:00 2026-06-01T18:09:26+00:00

i have an question in CSS: How i can do that: When the green

  • 0

i have an question in CSS:

How i can do that:

CSS Auto width

When the green div has (auto) 500px height for the content the red got the same.

And when the red has (auto) 700px height for the content the green got the same.

Both have any content then i use auto height.

So how i can do the green has the same width as red and red too but whit different content whit “height: auto;”?

  • 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-01T18:09:27+00:00Added an answer on June 1, 2026 at 6:09 pm

    I would just wrap both DIVS, inside another div, and have them bump up on the parent DIV, then resize the parent

    Something like this…. then use CSS to format them

    <div id=parent>
        <div id=child>
          Content....
        </div>
        <div id=child>
          Content....
        </div>
    </div>
    

    some other solutions could be listed here
    http://www.ejeliot.com/blog/61

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

Sidebar

Related Questions

Here is your dumb HTML/CSS question for the day.... I have a div that
This is probably a basic html/css question... I have a simple one-button form that
I know that you can have CSS on External Files, using a <style> tag
I have a question, currently I am working on a DIV that moves upwards
I have a question about styling Icefaces. I have a minimal application that can
Okay guys I have a question about positioning tables within DIV's using CSS. I
I have a question. When i am creating an application in rhomobile jquery.mobile.structure-1.0.css present
I don't know much css or html, so I have a question about taking
Per a great answer from another question I have begun mounting global resources (css/js/images)
here's a tricky question... I have default styled input fields (no css added, just

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.