উপরের বাম দিকে পাঠ্যের অবস্থান করতে, বাম এবং উপরে ব্যবহার করুন সম্পত্তি আপনি একটি চিত্র −
-এ পাঠ্যকে বাম অবস্থানে রাখার জন্য নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেনউদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
.box {
position: relative;
}
img {
width: 100%;
height: auto;
opacity: 0.6;
}
.direction {
position: absolute;
top: 10px;
left: 19px;
font-size: 13px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Below image has text in the top left:</p>
<div class = "box">
<img src = "https://www.tutorialspoint.com/python/images/python_data_science.jpg" alt = "Tutorial" width = "800" height = "400">
<div class = "direction">Top Left Corner</div>
</div>
</body>
</html>