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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:57:11+00:00 2026-06-18T23:57:11+00:00

I have the following HTML5 page (in a Windows Store App): <div> <textarea id=wideBox

  • 0

I have the following HTML5 page (in a Windows Store App):

<div>
    <textarea id="wideBox" class="wideInput"></textarea>        
    <textarea id="small1" class="narrowInput"></textarea>
    <textarea id="small2" readonly class="narrowInput"></textarea>
</div>

And the following CSS:

.wideBox {
    width: 100%;
    box-sizing: border-box;
    opacity: 80;
    height: 200px;
    background: -ms-linear-gradient(top, #213A4F, #1a82f7);
}

.narrowInput {
    width: 50%;
    box-sizing: border-box;
    height: 200px;
    float: left;
    padding: 5px;
    background: -ms-radial-gradient(bottom, #6BBEC7, #1a82f7);
}

The effect that I’m after is a single wide text box with two, equally sized smaller text areas beneath.

This does work, however, the smaller text boxes just merge together. To counteract this, I tried introducing a margin of 1px, however, this had the effect of pushing the second smaller text box to the next line.

I’ve also tried adding a border to the boxes, but to no avail.

How can I get the effect of a gap, or delineator, without changing the overall layout of the page?

  • 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-18T23:57:12+00:00Added an answer on June 18, 2026 at 11:57 pm

    You can simply wrap your second row textarea‘s into another div‘s which would have 50% and padding-right to emulate gap between textareas:

    /* textareas are inside this .wrap and have 100% */
    .wrap {
        width: 50%;
        box-sizing: border-box;
        float: left;
    }
    .wrap-first {
        padding-right: 1px;
    }
    

    http://jsfiddle.net/dfsq/RHYSL/

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

Sidebar

Related Questions

I have the following HTML on a Jquery Mobile Page: <div data-role=controlgroup data-type=horizontal class=panelSwitcher>
In the following HTML page, I have a div, which contains two spans (
I have the following elements in a HTML page: <body> <div style=height:100%; width:100%> <div
in my html page, I have the following: <div id=rub> Select at least one
I have the following page layout <div id=userscore >test</div> <iframe name=frameContent id=frameContent width=100% height=100%
I have the following HTML page and the background color for the content is
I have the following HTML on my web page: <input id=htmlEdit type=checkbox/> Once the
I have the following CSS on my HTML page: <style type=text/css> .hidden {display:none;} .visible
I have the following HTML Code <%@ Page Language=C# %> <html> <head> <title></title> </head>
I have the following HTML: <div id="page_title"> <div id="left_title> <h1> MY LARGE TITLE </h1>

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.