DOCTYPE HTML PUBLIC W3C DTD HTML 01 Transitional EN html head title На

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Натягиваем Label'ы</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<style type="text/css">
.div_input {
position: relative;
width: 259px; /* С юмором, с юмором девушка */
margin: 5px 0;
}
label {
display: block;
font-size: 1.2em;
font-style: italic;
margin: 0.2em;
text-align: center;
width: 100%;
position: absolute;
top: 0;
}
#auth_login, #auth_password {
font-size: 1.2em;
height: 1.6em;
padding-top: 0.2em;
width: 100%;
border: 1px solid gray;
}
</style>
</head>
<body>
<h1>Натягиваем Label'ы</h1>
<form action="labels.html" method="post">
<div class="div_input"><label for="auth_login">Логин</label><input type="text" name="auth_login" id="auth_login"></div>
<div class="div_input"><label for="auth_password">Пароль</label><input type="password" name="auth_password" id="auth_password"></div>
<input type="submit" value="Отправить">
</form>
</body>
</html>