<!DOCTYPE html> <html> <head> <style> img { position: absolute; right: 50px; } </style> </head> <body> <h1>This is a heading</h1> <img src="/static/demo/images/smiley.gif" width="42" height="42"> </body> </html>