| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <html style="direction:rtl"> | |
| 3 <head> | |
| 4 <style> | |
| 5 | |
| 6 #region1, #region2, #region3 { | |
| 7 border: 1px solid black; | |
| 8 } | |
| 9 | |
| 10 #region1 { | |
| 11 width: 200px; | |
| 12 height: 150px; | |
| 13 } | |
| 14 | |
| 15 #region2 { | |
| 16 width: 300px; | |
| 17 height: 180px; | |
| 18 } | |
| 19 | |
| 20 #region3 { | |
| 21 width: 120px; | |
| 22 height: 120px; | |
| 23 } | |
| 24 #gray-box1 { | |
| 25 height: 120px; | |
| 26 width: 60px; | |
| 27 background-color: #cccccc; | |
| 28 float: left; | |
| 29 margin-left: 20px; | |
| 30 margin-top: 30px; | |
| 31 } | |
| 32 #gray-box2 { | |
| 33 height: 180px; | |
| 34 width: 90px; | |
| 35 background-color: #cccccc; | |
| 36 float: left; | |
| 37 margin-left: 30px; | |
| 38 } | |
| 39 #gray-box3 { | |
| 40 height: 50px; | |
| 41 width: 36px; | |
| 42 background-color: #cccccc; | |
| 43 float: left; | |
| 44 margin-left: 12px; | |
| 45 } | |
| 46 #green-box1 { | |
| 47 height:150px; | |
| 48 width:50%; | |
| 49 background-color:#00a000; | |
| 50 margin-right: 20px; | |
| 51 } | |
| 52 #green-box2 { | |
| 53 height:180px; | |
| 54 width:50%; | |
| 55 background-color:#00a000; | |
| 56 margin-right: 30px; | |
| 57 } | |
| 58 #green-box3 { | |
| 59 height:120px; | |
| 60 width:50%; | |
| 61 background-color:#00a000; | |
| 62 margin-right: 12px; | |
| 63 } | |
| 64 </style> | |
| 65 </head> | |
| 66 | |
| 67 <body> | |
| 68 <p style="direction:ltr">The green positioned object should go through all three
regions. Its right edge should have the same offset from the right side of the
light grey boxes in each region.</p> | |
| 69 | |
| 70 <div id="region1"> | |
| 71 <div id="gray-box1"></div> | |
| 72 <div id="green-box1"></div> | |
| 73 </div> | |
| 74 <div id="region2"> | |
| 75 <div id="gray-box2"></div> | |
| 76 <div id="green-box2"></div> | |
| 77 </div> | |
| 78 <div id="region3"> | |
| 79 <div id="gray-box3"></div> | |
| 80 <div id="green-box3"></div> | |
| 81 </div> | |
| 82 | |
| 83 </body> | |
| OLD | NEW |