en.javascript.info/2-ui/2-events-and-interfaces/4-event-bubbling/both.view/example.css
2015-02-07 15:12:07 +03:00

33 lines
No EOL
444 B
CSS
Executable file

form {
background-color: green;
position: relative;
width: 150px;
height: 150px;
text-align: center;
cursor: pointer;
}
div {
background-color: blue;
position: absolute;
top: 25px;
left: 25px;
width: 100px;
height: 100px;
}
p {
background-color: red;
position: absolute;
top: 25px;
left: 25px;
width: 50px;
height: 50px;
line-height: 50px;
margin: 0;
}
body {
line-height: 25px;
font-size: 16px;
}