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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:52:19+00:00 2026-05-27T01:52:19+00:00

The outermost container div has two inner divs – the right-side inner div has

  • 0

The outermost container div has two inner divs – the right-side inner div has text that can grow or shrink based on user input (to come later, a lot of text is simulated now in the text div by setting its height:250px). The weird thing is — as the right-side inner div’s height grows — the left side inner div ‘falls’ downward in the outer div. I put colored outlines around the divs — the left inner div, the one with the ‘falling’ problem has a blue outline. The ‘growing due to user-entered text’ is the inner div on the right with the purple border.

The outer container of the 2 inner divs has an orange outline.

I need the left div with the blue border to be 100% UNAFFECTED or un-influenced by the amount of text entered. That left div with the blue border must stay in the top-left corner of the outer container div that has the orange border.

Why does the height of a box in the right-side green div push the left div downward?

Here’s a link to see what’s happening:

http://jsfiddle.net/Shomer/JSyYY/

Here’s the code:

<div style="display:inline-block; border: 4px solid orange;">
    <div style="border: 2px solid blue; display:inline-block;">
      <div style="display:inline-block; border: 1px solid red;">topleft
      </div>
      <div style="display:inline-block; border: 1px solid red;">topright
      </div>
      <div>lower div
      </div>
    </div>

   <div style="display:inline-block; border: 3px solid purple;">
    <div style="display:inline-block; height:250px; border: 1px solid red;"> "text"
   </div>
   <div style="display:inline-block; margin-top:0; border: 1px solid red;"> <b>button</b>
   </div>
    <div>&nbsp; </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-05-27T01:52:20+00:00Added an answer on May 27, 2026 at 1:52 am

    Hiyou should try setting the vertical Align to top of the parent div of the blueborder div.

    <div style="display:inline-block; border: 4px solid orange;" >
        <div style="border: 2px solid blue; display:inline-block;**vertical-align:top**">
              <div style="display:inline-block; border: 1px solid red;">topleft
              </div>
              <div style="display:inline-block; border: 1px solid red;">topright
              </div>
              <div>lower div
              </div>
              <!-- <div>a</div> -->
        </div>
    
        <div style="display:inline-block; border: 3px solid purple;">
            <div style="display:inline-block; height:250px; border: 1px solid red;"> "text"
           </div>
           <div style="display:inline-block; margin-top:0; border: 1px solid red;"> <b>button</b>
           </div>
            <div>&nbsp; </div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that contains inside 3 'floated' divs. The containing div has
Am I right that you'd only need a using() for the outermost stream if
I have an element in a div set to float: right however, it causes
I'm working on a page has an ol with nested p's, div's, and li's.
I'd like to put a TreeGrid in my application so that the columns can
I've been developing a MathLink application with a function that accepts two lists, e.g.
I have 3 divs placed side by side in my application , and after
Is it possible to access the forloop.counter for the outermost for loop in the
In IDEA I can select a block of html and press ctrl+alt+t to surround
I have a page with an iframe. Inside the iframe is code (that I

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.