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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:58:17+00:00 2026-06-01T03:58:17+00:00

For a simple chat application, I thought of using this simple layout: *———————————-* |<div>

  • 0

For a simple chat application, I thought of using this simple layout:

*----------------------------------*
|<div>                             |
|                                  |
|                                  |
|                                  |
+----------------------------------+
|<input type text>            |Send|
+----------------------------------+

i.e., at the bottom we have a form consisting of a textfield for typing in messages as well as a button for sending them. The rest of the screen shall be a <div> where the messages are shown. The <div> should take up the remaining space, and the textfield should stretch horizontally.

My main problem is stretching the div. No matter what I do, it doesn’t seem to stretch. I’ve tried setting height to 100%, tried to position is absolute, but didn’t help. Any ideas?

  • 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-01T03:58:18+00:00Added an answer on June 1, 2026 at 3:58 am

    If you place the form inside the div and set them both to absolute, that should do it… This works in Chrome, haven’t tested elsewhere:

    HTML:

    <div id="convo">
        <form id="talk" method="post" action="#">
            <input type="text" name="talk" />
            <input name="send" id="send" type="submit" value="Send" />
        </form>
    </div>
    

    CSS:

    * {
        box-sizing: border-box;
        margin: 0 auto; padding: 0;
    }
    
    input[type=text] {
        width: 90%;
        height: 100%;
    } 
    
    #talk, #convo {
        position: absolute;
        width: 100%;
        border: 4px solid SteelBlue;
    }
    
    #talk {
        height: 7.5%;
        bottom: 0;
    }
    
    #convo {
        height: 100%;
        background-color: DarkSlateGray;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created simple chat application using smack api.i can able to chat well.but
i have a simple chat application in flex 3 and i want to make
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
I'm trying to create a very simple chat application in Flex/.Net using FluorineFX but
I have a really simple chat application on a site which works pretty good.
I want to build a simple web-interface application that can send/receive chat messages to/from
I am trying to implement simple chat application using flex. In it all my
I am thinking of a simple chat application in Window Phone using Microsoft Push
Helo, I have implemented a chat application using Comet. the request is hang on
I have made a simple chat script using jquery and AJAX but the huge

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.