Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { position: relative; max-width: 300px; line-height: 20px; } p { position: absolute; right: initial; background-color: lightgreen; } </style> </head> <body> <h2>Right property example</h2> <div> Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs <p>Some text</p> </div> </body> </html>