Skip to content

Commit 718ab32

Browse files
committed
Merge pull request #2 from iliakan/js-nodejs/issues/258
#258 Задача: placeholder вылезает за границу
2 parents c018a2d + 8c0b636 commit 718ab32

File tree

1 file changed

+19
-5
lines changed
  • 2-ui/4-forms-controls/2-focus-blur/6-input-nice-placeholder/solution.view

1 file changed

+19
-5
lines changed

2-ui/4-forms-controls/2-focus-blur/6-input-nice-placeholder/solution.view/index.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@
33
<head>
44
<meta charset="utf-8">
55
<style>
6-
input {
7-
margin: 0;
6+
body
7+
{
8+
font: 14px/14px Arial, sans-serif;
9+
}
10+
11+
input
12+
{
13+
font: 14px/14px Arial, sans-serif;
14+
815
width: 12em;
16+
padding: 0;
17+
margin: 0;
918
}
1019

11-
#placeholder {
12-
color: red;
20+
#placeholder
21+
{
22+
font: 14px/14px Arial, sans-serif;
23+
24+
position: absolute;
1325

14-
margin: -1.3em 0 0 0.2em;
26+
margin: -1.2em 0 0 0.2em;
27+
28+
color: red;
1529
}
1630
</style>
1731
</head>

0 commit comments

Comments
 (0)