الصفحة الرئيسية
تحميل الكود
تغيير الألوان
تغيير العرض
تغيير حجم العرض
تشغيل الكود
<!DOCTYPE html> <html> <head> <style> p::after { content: ''; display: inline-block; vertical-align: middle; margin-left: 5px; background-image: url(/tutorials/css/before-and-after/carret.png); background-size: contain; width: 14px; height: 14px; } </style> </head> <body> <h1>Set the size of image inside the after selector</h1> <p>We use the after selector to insert an image after the content.</p> <p>We set background-size identical to the content size to make look better.</p> </body> </html>