متن روی تصویر
بازگشت به صفحه اصلی
بازگشت به صفحه مقاله
دو ستونی
دو سطری
اجرای کد RUN »
<!DOCTYPE html> <html> <head> <style> .container { position: relative; } .topleft { position: absolute; top: 8px; left: 16px; font-size: 18px; } img { width: 100%; height: auto; opacity: 0.3; } h2,p,div {direction:rtl;} </style> </head> <body> <h2>متن روی تصویر</h2> <p>مقداری متن روی یک تصویر در قسمت بالا-چپ آن قرار داده ایم :</p> <div class="container"> <img src="trolltunga.jpg" alt="Norway" width="1000" height="300"> <div class="topleft"> بالا- چپ</div> </div> </body> </html>