html
1<!DOCTYPE html> 2<html> 3<head> 4<meta charset="UTF-8"> 5<link rel="stylesheet" type="text/css" href="style.css"> 6<title>login page</title> 7</head> 8<body> 9<div class="frameborder1"> 10<h1>ログイン</h1> 11<div class="frameborder2"> 12<div class="content"> 13<form action="/webkensyu/Relay" method="get"> 14<p><label>ユーザー名<input type="text" name="text1"></label></p><br> 15<p><label>パスワード<input type="text" name ="text2"></label></p> 16<button type="submit" class="button">ログイン</button><br> 17<button type="submit" class="button">ユーザー作成</button> 18</form> 19</div> 20</div> 21</div> 22</body> 23</html>
css
1 2 3.frameborder1{ 4 5 width: 500px; height: 300px; 6 border:1px solid; 7 position: relative; 8} 9 10h1{ 11 text-align: center; 12} 13 14 15.frameborder2{ 16 17 width: 200px; height: 150px; 18 border:1px solid; 19 20 21 position:absolute; 22 left:150px; 23} 24 25p{ 26 position: absolute; 27 top: 0px; 28} 29
画像のように表示したいのですが、上手くいきません。
アドバイス頂けると助かります。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/09/03 09:22 編集
2019/09/04 00:17
2019/09/04 00:25
2019/09/04 01:20