OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .fixed_size { | 5 .fixed_size { |
6 position:absolute; | 6 position:absolute; |
7 background-color:#ccffcc; | 7 background-color:#ccffcc; |
8 width:25px; | 8 width:25px; |
9 height:25px; | 9 height:25px; |
10 } | 10 } |
11 .percentage_size { | 11 .percentage_size { |
12 position:absolute; | 12 position:absolute; |
13 background-color:#ccccff; | 13 background-color:#ccccff; |
14 width:10%; | 14 width:10%; |
15 height:10%; | 15 height:10%; |
16 } | 16 } |
17 </style> | 17 </style> |
18 </head> | 18 </head> |
19 <body style="width:800px;height:600px;margin:0;"> | 19 <body style="width:800px;height:600px;margin:0;"> |
20 <div class="fixed_size" style="left:5px;top:10px"></div> | 20 <div class="fixed_size" style="left:5px;top:10px"></div> |
21 <div class="fixed_size" style="right:15px;top:20px"></div> | 21 <div class="fixed_size" style="right:15px;top:20px"></div> |
22 <div class="fixed_size" style="left:25px;bottom:30px"></div> | 22 <div class="fixed_size" style="left:25px;bottom:30px"></div> |
23 <div class="fixed_size" style="right:35px;bottom:40px"></div> | 23 <div class="fixed_size" style="right:35px;bottom:40px"></div> |
24 <div class="percentage_size" style="left:40%;top:35%"></div> | 24 <div class="percentage_size" style="left:40%;top:35%"></div> |
25 <div class="percentage_size" style="right:30%;top:25%"></div> | 25 <div class="percentage_size" style="right:30%;top:25%"></div> |
26 <div class="percentage_size" style="left:20%;bottom:15%"></div> | 26 <div class="percentage_size" style="left:20%;bottom:15%"></div> |
27 <div class="percentage_size" style="right:10%;bottom:5%"></div> | 27 <div class="percentage_size" style="right:10%;bottom:5%"></div> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |