الصفحة الرئيسية
تحميل الكود
تغيير الألوان
تغيير العرض
تغيير حجم العرض
تشغيل الكود
<!DOCTYPE html> <html> <head> <style> .gradient-top { height: 100px; background: #00188F; background: linear-gradient(to top, #00188F, #EC008C); } .gradient-right { height: 100px; background: #00188F; background: linear-gradient(to right, #00188F, #EC008C); } .gradient-bottom { height: 100px; background: #00188F; background: linear-gradient(to bottom, #00188F, #EC008C); } .gradient-left { height: 100px; background: #00188F; background: linear-gradient(to left, #00188F, #EC008C); } .gradient-right-top { height: 100px; background: #00188F; background: linear-gradient(to right top, #00188F, #EC008C); } .gradient-right-bottom { height: 100px; background: #00188F; background: linear-gradient(to right bottom, #00188F, #EC008C); } .gradient-left-top { height: 100px; background: #00188F; background: linear-gradient(to left top, #00188F, #EC008C); } .gradient-left-bottom { height: 100px; background: #00188F; background: linear-gradient(to left bottom, #00188F, #EC008C); } </style> </head> <body> <h1>Linear Gradient Sides and Corners</h1> <p>background: linear-gradient(to top, #00188F, #EC008C);</p> <div class="gradient-top"></div> <p>background: linear-gradient(to right, #00188F, #EC008C);</p> <div class="gradient-right"></div> <p>background: linear-gradient(to bottom, #00188F, #EC008C);</p> <div class="gradient-bottom"></div> <p>background: linear-gradient(to left, #00188F, #EC008C);</p> <div class="gradient-left"></div> <p>background: linear-gradient(to right top, #00188F, #EC008C);</p> <div class="gradient-right-top"></div> <p>background: linear-gradient(to right bottom, #00188F, #EC008C);</p> <div class="gradient-right-bottom"></div> <p>background: linear-gradient(to left top, #00188F, #EC008C);</p> <div class="gradient-left-top"></div> <p>background: linear-gradient(to left bottom, #00188F, #EC008C);</p> <div class="gradient-left-bottom"></div> </body> </html>