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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:45:41+00:00 2026-06-03T19:45:41+00:00

I have a span with some text, and beneath it should be a textarea

  • 0

I have a span with some text, and beneath it should be a textarea and a big square button, side by side. There should be no vertical space between the text area and the span, or between the button and the span. The textarea appears perfectly. The button, however, has about 15-20px of blank space above it, so that it appears quite a bit lower that the text area, rather than being nicely lined up. I told it to set padding and margin to 0px, so what the F?

<span class="notice">
Logged in as "ladygaga" (type message and hit ENTER or click SEND)
</span>

<textarea id="messagebox">
</textarea>
<button id="send">SEND</button>

And the CSS:

#messagebox
{
width:300px;
height:40px;
background-color:white;
border:2px;
border-style:solid;
border-color:green;
overflow:auto;
resize:none;
}

#send
{
margin:0px;
padding:0px;
font-size:14px;
height:40px;
width:50px;
}
  • 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-03T19:45:43+00:00Added an answer on June 3, 2026 at 7:45 pm

    This:

    #send {
        vertical-align: top; 
    }
    

    Live demo: http://jsfiddle.net/YSHmE/2/

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

Sidebar

Related Questions

I have this label: <label id=options_31409_3label for=options_31409_3><span>some text</span></label> As you see, there is some
I have a floated span with some text. I have set the overflow to
I have a datagrid where some of the text needs to span multiple columns.
I have an element that contains two span tags that each contain some text.
I have HTML which looks something like this: <span id=text> <span class=segment id=first>some text</span>
I have a following xslt: <span><xsl:text disable-output-escaping=yes><![CDATA[&nbsp;Some text]]></xsl:text></span> After transformation I get: <span>&amp;nbsp;Some text</span>
I have the following HTML doc : <ul> <li><span>Some text</span></li> <li><span>Some other text</span></li> <li><span>Some
I have the following HTML <div> <label for=username>Username:</label> <input type=text name=username id=username /> <span>some
If I have html like this: <li id=listItem> This is some text <span id=firstSpan>First
Say I have the following in an XHTML page: <span style=color:#555555; font-style:italic>some text</span> How

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.