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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:52:40+00:00 2026-06-05T19:52:40+00:00

I have a set of code as per below. The point is to have

  • 0

I have a set of code as per below. The point is to have a set of images be in the div, and the remainder of the div is populated with a textarea. If I set the height = 100%, it will make it the same height, which isn’t the (div.height – images.height) and makes the textarea longer.

It says on w3c that inherit doesn’t work at the moment, auto will just make a default textarea, and hardcoding it will never accomplish it as the div could be bigger or smaller.

What have you all done to accomplish this?

<div id = "parent">
  <div id = "images" style="background-color:#99ccff;">
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
    <img style = "padding:0px; border:0px;" src = "..." />
  </div>
  <textarea style="width:100%; height:100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;" >
  </textarea>
</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-05T19:52:42+00:00Added an answer on June 5, 2026 at 7:52 pm

    Seems to be impossible to get this behavior work in other browsers than chrome.

    I’ve tried to split the pictures and textarea in two CSS table-rows to give #images a height so that #textarea-container automatically adjust its height. The next step was to give textarea 100% height and 100% width.

    Absolute positioning an element in a relative positioned table cell is not supported:
    CSS Positioning inside of an HTML Table

    So textarea { position: absolute; left:0;right:0;bottom:0;top:0 } in a relative positioned table cell will not work.

    HTML

    <div id ="parent">
        <div id="images">
            <img src="http://www.dummyimage.com/100x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/80x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/20x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/80x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/100x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/120x20/cc5acc/fff.png" />
            <img src="http://www.dummyimage.com/50x20/cc5acc/fff.png" />
        </div>
    
        <div id="textarea-container">
            <textarea></textarea>    
        </div>    
    </div>​
    

    CSS

    * { margin:0; padding: 0 }
    
    #parent{
        width: 400px;
        height: 300px;
        display: table;
        background: blue;
    }
    #images {
        display: table-row;
        height: 0;
    }
    
    #textarea-container {
        display: table-row;
    }
    
    textarea {
        height: 100%;
        width: 100%;
    }
    

    ! This solution depends on display: table, display: table-row and Google Chrome.

    Live demo (works only in google chrome): http://jsfiddle.net/atTK7/4/
    Display table support: http://www.quirksmode.org/css/display.html

    A Javascript workaround for browsers, except for chrome, is recommended.

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

Sidebar

Related Questions

I have this set of code which was working fine about an hour or
I am facing a weird error.I have set up my code in IntelliJ Idea.
I have set up a test page using the PrimeFaces showcase labs code to
I currently have my code set to disable the submit button when the field
I have this code which draws a Window and NSView, and have set up
I am having a bit of difficulty with this current code I have set
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it
I have the following code set up in my Startup IDictionary<string, string> properties =
I have a set of directories called CODE (GRADE) and would like to rename
I am using the code below to set my two NSArray ivars: The issue

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.