en.javascript.info/2-ui/4-forms-controls/2-focus-blur/3-hotkeys/source.view/my.css
Ilya Kantor 1f61c2ab1d ok
2017-03-15 00:43:43 +03:00

27 lines
No EOL
398 B
CSS

#view,
#area {
height: 150px;
width: 400px;
font-family: arial;
font-size: 14px;
}
#view {
/* padding + border = 3px */
padding: 2px;
border: 1px solid black;
}
#area {
display: none;
/* replace padding with border (still 3px not to shift the contents) */
border: 3px groove blue;
padding: 0px;
}
#area:focus {
outline: none;
/* remove focus border in Safari */
}