File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 ">
5+ < title > Untitled Document</ title >
6+ < style type ="text/css ">
7+ .parent {padding : 100px ;background-color : # 999999 }
8+ .child {width : 100% ;background-color : # CCCCCC ; border-collapse : collapse;}
9+ td {border : 15px solid red;}
10+ </ style >
11+
12+ </ head >
13+
14+ < body >
15+ < div class ="parent ">
16+ < div class ="child ">
17+ width 100% child in a parent with padding.
18+ </ div >
19+ </ div >
20+
21+ < div class ="parent ">
22+ < table class ="child ">
23+ < tr >
24+ < th scope ="col "> filler</ th >
25+ < th scope ="col "> filler</ th >
26+ < th scope ="col "> filler</ th >
27+ < th scope ="col "> filler</ th >
28+ < th scope ="col "> filler</ th >
29+ < th scope ="col "> filler</ th >
30+ </ tr >
31+ < tr >
32+ < td > filler</ td >
33+ < td > filler</ td >
34+ < td > filler</ td >
35+ < td > filler</ td >
36+ < td > filler</ td >
37+ < td > filler</ td >
38+ </ tr >
39+ < tr >
40+ < td > filler</ td >
41+ < td > filler</ td >
42+ < td > filler</ td >
43+ < td > filler</ td >
44+ < td > filler</ td >
45+ < td > filler</ td >
46+ </ tr >
47+ < tr >
48+ < td > filler</ td >
49+ < td > filler</ td >
50+ < td > filler</ td >
51+ < td > filler</ td >
52+ < td > filler</ td >
53+ < td > filler</ td >
54+ </ tr >
55+ < tr >
56+ < td > filler</ td >
57+ < td > filler</ td >
58+ < td > filler</ td >
59+ < td > filler</ td >
60+ < td > filler</ td >
61+ < td > filler</ td >
62+ </ tr >
63+ < tr >
64+ < td > filler</ td >
65+ < td > filler</ td >
66+ < td > filler</ td >
67+ < td > filler</ td >
68+ < td > filler</ td >
69+ < td > filler</ td >
70+ </ tr >
71+ </ table >
72+
73+ </ div >
74+
75+ </ body >
76+ </ html >
You can’t perform that action at this time.
0 commit comments