お問いあわせフォームを作っているのですが、色々、試行錯誤の末一つだけ分からない事があります。
下記のた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×でした。
No.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;
}
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
htmlの文字が縦書きになる
-
画像イメージの上下左右、欲し...
-
ロールオーバーの挙動がおかしい
-
CSSでボックスのheightが0になる
-
Media Queries 4 で 非推奨とな...
-
widthやheightの数値に単位(px...
-
css初心者 フレックスボックス...
-
ブラウザの文字サイズを変更す...
-
HTMLのiframeの入れ子について
-
ホームページのメニュー
-
インラインフレーム内の表示位...
-
div枠のレイアウトが崩れてしま...
-
float: leftで横に並べたら、サ...
-
マージンの基点について
-
ウインドウを小さくするとbody...
-
スクロールボックスを中央に配...
-
表示倍率を変えるとレイアウト...
-
CSSについて
-
モーダルダイアログでのボタン...
-
CSSで指定した背景画像にリンク...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
htmlの文字が縦書きになる
-
widthやheightの数値に単位(px...
-
css初心者 フレックスボックス...
-
CSSがなぜかfont-sizeだけ効か...
-
【CSS】ヘッダーの高さが不明の...
-
画像イメージの上下左右、欲し...
-
CSS、width100%でもできる余白
-
スクロールボックスを中央に配...
-
<div>と<div>の間の10px程の...
-
CSSで背景画像を一番下にもって...
-
余分な縦スクロールバーが出て...
-
CSS:animation開始位置の設定
-
form input テキストを上下中央...
-
Media Queries 4 で 非推奨とな...
-
CSSでボックスのheightが0になる
-
W3Cのソースコードの検証サービ...
-
表示倍率を変えるとレイアウト...
-
定義リストに下線をつけたいと...
-
背景が下まで表示されないんです。
-
footer を横幅いっぱいに広げる...
おすすめ情報