HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ position: relative; border: 1px solid black; height: 250px; } img{ position: static; } </style> </head> <body> <h1>CSS position 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>: Here position of the image is static (default). Thus image render in order, as they appear in the document flow.</p> </body> </html>
OUTPUT
×

Save as Private