|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <style type="text/css"> |
|
5 #block1, #block2 { |
|
6 height: 20px; |
|
7 background-color: green; |
|
8 } |
|
9 #table { |
|
10 width: 100px; |
|
11 margin-right: auto; |
|
12 } |
|
13 #caption { |
|
14 height: 20px; |
|
15 background-color: blue; |
|
16 } |
|
17 .spacer { |
|
18 height: 30px; |
|
19 } |
|
20 </style> |
|
21 </head> |
|
22 <body> |
|
23 <div id="block1"></div> |
|
24 <div class="spacer"></div> |
|
25 <div id="table"> |
|
26 <div id="caption"></div> |
|
27 </div> |
|
28 <div class="spacer"></div> |
|
29 <div id="block2"></div> |
|
30 </body> |
|
31 </html> |