File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22
33< html >
4- < head > < title > JavaScript Review Problem: Identifying Child Elements</ title > </ head >
4+ < head >
5+ < title > JavaScript Review Problem: Identifying Child Elements</ title >
6+ < style >
7+ div # container {
8+ display : block;
9+ width : 200px ;
10+ margin : auto;
11+ }
12+ h3 {
13+ text-align : center;
14+ }
15+ ul {
16+ padding : 15px 25px ;
17+ border : 1px solid # 000 ;
18+ }
19+ li {
20+ margin : 5px 0 ;
21+ padding : 5px ;
22+ border : 1px solid # 00F ;
23+ font-weight : bold;
24+ text-align : center;
25+ list-style : none;
26+ }
27+ </ style >
28+ </ head >
529 < body >
6- < h3 id ="list-title "> </ h3 >
7- < ul id ="list " style ="background-color: #EEE; "> </ ul >
30+ < div id ="container ">
31+ < h3 id ="list-title "> </ h3 >
32+ < ul id ="list " style ="background-color: #EEE; "> </ ul >
33+ </ div >
834 < script >
935 var numItems = Math . floor ( Math . random ( ) * 10 + 5 ) ,
1036 list = document . getElementById ( 'list' ) ,
You can’t perform that action at this time.
0 commit comments