<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
position: relative;
border: 1px solid black;
height: 250px;
}
img{
position: absolute;
right: 20%;
}
</style>
</head>
<body>
<h1>CSS right Property</h1>
<p>This is first paragraph.</p>
<p>This is second paragraph.</p>
<p>This is third paragraph.</p>
<div>
<img src="apple.png">
</div>
<p><strong>Note</strong>: Image starts from 20% from the right of the div.</p> </body>
</html>