HTML-এ ফ্লোটিং ইমেজ ব্যবহার করতে CSS float প্রোপার্টি ব্যবহার করুন। এটি আপনাকে একটি ইমেজ বাম বা ডানে ফ্লোট করার অনুমতি দেয়। আরও প্রোপার্টি ভ্যালুগুলো নিচে দেওয়া হলো:
| Sr.No. | প্রোপার্টি ভ্যালু ও বর্ণনা |
|---|---|
| 1 | none ফ্লোটেড নয় |
| 2 | left বামে ফ্লোট করে |
| 3 | right ডানে ফ্লোট করে |
| 4 | initial ডিফল্ট ভ্যালু |

উদাহরণ
নিচের কোড চালিয়ে দেখুন HTML-এ ফ্লোটিং ইমেজ ব্যবহার করতে। এখানে float right এবং float left CSS অ্যাট্রিবিউটের ব্যবহার দেখানো হলো:
<!DOCTYPE html> <html> <head> <title>HTML Floating Image</title> </head> <body> <h1>Float Right</h1> <p>The below image floats to the right.</p> <p> <img src="https://www.tutorialspoint.com/green/images/logo.png" style="float:right" width="190" height="84" /> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </p> <h1>Float Left</h1> <p>The below image floats to the left.</p> <p> <img src="https://www.tutorialspoint.com/green/images/logo.png" style="float:left" width="190" height="84" /> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </p> </body> </html>
আউটপুট
