| <!doctype html> |
| <html style="direction:rtl"> |
| <head> |
| <style> |
| #content { |
| |
| text-align: justify; |
| padding: 5px; |
| } |
| |
| #green-box { |
| background-color: green; |
| width: 50%; |
| height: 100%; |
| } |
| |
| |
| #region1, #region2, #region3 { |
| border: 1px solid black; |
| |
| } |
| |
| #region1 { |
| width: 200px; |
| height: 150px; |
| } |
| |
| #region2 { |
| width: 300px; |
| height: 180px; |
| } |
| |
| #region3 { |
| width: 120px; |
| height: 120px; |
| } |
| </style> |
| </head> |
| <body> |
| <p style="direction:ltr">The green positioned object should only be as tall as the first region it |
| is contained in. It should fill the right half of the first region.</p> |
| |
| |
| |
| |
| |
| <div id="region1"> |
| <div id="green-box"></div> |
| </div> |
| <div id="region2"></div> |
| <div id="region3"></div> |
| |