2016-10-16 4 views
-1

以外のボタンを維持したい、私はメッセンジャーのようにテキストエリア以外のボタンを整列する:はHTMLでテキストエリア

Like this

はフッターにある両方が、私は変更されたとき画面サイズは、これが起こる:

This happens

<input type="button" value="➢" onclick="CheckAndSubmit()" style=" position:fixed; bottom:4px;right:100px; padding:15px;"> 
<textarea name="message" id="message" cols="40" rows="1" style="position:fixed; padding:15px; bottom:4px;"></textarea> 
+0

ご質問は誰をotherviseないとあなたがコードを提供する必要がありますここで推測します – Beloo

+0

@Beloo大丈夫、ありがとう私は心に留めておきます – Sid

答えて

0

それを行うための最も簡単な方法は、あなたがここでそれについての詳細を読むことができますブートストラップを使用することです。 http://getbootstrap.com/。ブートストラップを使用するには

、あなたのhtml - タグでこれを置く:あなたのHTMLコードで

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 

、あなたは、単に書くことができます:

<div class="container"> 
    <div class="col-md-10"> 
     // Input field goes here 
    </div> 
    <div class="col-md-2> 
     // Button goes here 
    </div> 
</div> 
関連する問題