Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { height: 150px; width: 400px; background-color: #ccc; color: #666; padding: 10px; } img { position: absolute; left: 200px; } </style> </head> <body> <h2>Left property example</h2> <div> <img src="/build/images/w3docs-logo-black.png" alt="CSS left property"> This is some div element for <br> which the left side is defined <br> as 150px. </div> </body> </html>