- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS3 Diagonal Gradient
Diagonal starts at top left and right button. You can try to run the following code to implement diagonal gradients in CSS3 −
<html> <head> <style> #grad1 { height: 100px; background: -webkit-linear-gradient(left top, red , blue); background: -o-linear-gradient(bottom right, red, blue); background: -moz-linear-gradient(bottom right, red, blue); background: linear-gradient(to bottom right, red , blue); } </style> </head> <body> <div id = "grad1"></div> </body> </html>
- Related Articles
- CSS3 Left to right Gradient
- CSS3 top to bottom Gradient
- CSS linear-gradient() Function
- What Is Concentration Gradient?
- Linear gradient with rainbow color
- Usage of linear-gradient() CSS function
- Repeat a linear gradient with CSS
- Usage of radial-gradient() CSS function
- Repeat a radial gradient with CSS
- Linear gradient with multiple color stop
- CSS3 Rounded corners
- CSS3 Resize Property
- CSS3 font combinations
- CSS3 Opacity property
- CSS3 Linear gradients

Advertisements