| <!DOCTYPE html> |
| <!-- |
| | This is a simple relative positioning test which checks that the element |
| | is offset from its standard in-flow position by specifing right and bottom, |
| | and does not affect the layout of surrounding elements in the flow. |
| | https://www.w3.org/TR/CSS21/visuren.html#relative-positioning |
| --> |
| <html> |
| <head> |
| <style> |
| .box { |
| width: 50px; |
| height: 50px; |
| |
| background-color: rgb(100, 100, 255); |
| } |
| |
| .position-relative { |
| position: relative; |
| right: 25px; |
| bottom: 25px; |
| |
| background-color: rgb(255, 100, 100); |
| } |
| </style> |
| </head> |
| |
| <body> |
| <div class="box"></div> |
| <div class="box position-relative"></div> |
| <div class="box"></div> |
| </body> |
| </html> |