プロが教える店舗&オフィスのセキュリティ対策術

お問いあわせフォームを作っているのですが、色々、試行錯誤の末一つだけ分からない事があります。
下記のたtableタグ内の最後にお問い合わせ欄を設けたい(widthとheightの設定)のですがうまくCSSを設定する事が出来ません。
ご教授よろしくお願い致します。
HTML
*********************************
<section id="contact">
<form action="" method="post" class="touroku_form_all">
<table class="touroku_form">
<table class="touroku_form">
<tr><th>お名前(漢字)</th><td>
<input type="text" class="fm" name="name" ></td></tr>
<tr><th>Eメールアドレス</th><td>
<input type="text" class="fm" name="email" ></td></tr>
<tr><th>電話番号</th><td>
<input type="text" class="fm" name="tel" ></td></tr>
<tr>
※ココの部分です。<th>お問い合わせ内容</th>
<td>
<input type="text" id="ta" name="toi" >
</td>
</tr>
</table>
CSS(現在設定中)
*************************************
#contact table td {
text-align: left;
padding-left: 10px;
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
position: relative;
}
#contact table .input .z1{
float: left;
width: 100px;
margin-right: 20px;
padding: -8px;
text-align: center;
letter-spacing:1px;
}

#contact table .input .z2{
width: 100px;
height: 30px;
text-align:center;
padding: 0 10px 0 10px;
}
#contact table td input[type="text"],
#contact table td input[type="password"] {
font-family: "メイリオ",
width:50%;
letter-spacing:1px;
background:#fff;
border:solid 1px #bec7d6;
border-radius:3px;
padding:6px 10px;
float:left;
font-size: 14px;
}
#contact input[type="radio"] {
width:1em;
height:1em;
vertical-align:middle;
margin-left:10px;
}
.touroku_form .input select {
width:6em;
font-size:14px;
margin-right:6px;
<!-- background:url(img/select_arrow.png?20150901) 55px 50% no-repeat;-->
}
.touroku_form zip21[name="post1"] {
width:7em;
height:34pm;
background-position:152px;
padding:5px 10px;
border-radius:3px;
}

#input zip22[name="post2"] {
width:7em;
height:34pm;
float:center;
background-position:152px;
padding:5px 10px;
border-radius:3px;
}

select#pref21[name="add1"] {
width:25.5em;
height:34px;
background-position:152px;
padding:5px 10px;
border-radius:3px;
}
*************************
#contact table .input .ta×.tourokuform.input#ta×でした。

A 回答 (1件)

html修正 & css追加


●html修正部分
※ココの部分です。<th>お問い合わせ内容</th>
<td>
<input type="text" id="ta" name="toi" >
</td>

↓修正:inputでは無く、textareaを使う

※ココの部分です。<th>お問い合わせ内容</th>
<td>
<textarea id="ta" name="toi" ></textarea>
</td>

●css追加:以下追加、サイズは要調整
#contact table td #ta{
width: 300px;
height:100px;
text-align:center;
padding: 0 10px 0 10px;
}
    • good
    • 0
この回答へのお礼

恐れ入ります。的確なアドバイスありがとうございます。

お礼日時:2016/01/23 02:10

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!