html
html
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="parent">
<div id="child" ></div>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
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
html,body{
padding: 0;
margin: 0;
}
*{
box-sizing: border-box;
}
body{
width: 100vw;
height: 100vh;
padding: 20px;
}
#parent{
padding: 20px;
background: #eee;
border: 1px solid #222;
}
/*
Uncomment the below CSS part to see the effect
This selects the child div elements of #parent
*/
/*
#parent div{
background: #bbb;
border: 1px solid #222;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run