Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> img.tree { width: 200px; height: 400px; border: 2px solid #8ebf42; object-fit: none; object-position: left; } </style> </head> <body> <h2>Beispiel für die Eigenschaft object-position</h2> <h3>Originalbild:</h3> <img src="/uploads/media/default/0001/01/b408569013c0bb32b2afb0f0d45e93e982347951.jpeg" alt="Tree" width="300" height="200"> <h3>Object-position: left</h3> <img class="tree" src="/uploads/media/default/0001/01/b408569013c0bb32b2afb0f0d45e93e982347951.jpeg" alt="Tree" width="300" height="200"> </body> </html>