

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Creating CSS3 Radial Gradients
<p>For Radial Gradients, set color stops. The default shape is Ellipse, but you can also set other shapes like circle. Set at least two color stops for Radial Gradients in CSS.</p><p>Following is the code for creating radial gradients using CSS −</p><h2>Example</h2><p><a class="demo" href="http://tpcg.io/erQtbuxy" rel="nofollow" target="_blank"> Live Demo</a></p><pre class="prettyprint notranslate"><!DOCTYPE html> <html> <head> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } #radial { height: 200px; width: 200px; background-image: radial-gradient( rgb(255, 0, 106), rgb(2, 0, 128), rgb(0, 255, 42) ); } </style> </head> <body> <h1>Radial Gradient Example</h1> <div id="radial"></div> </body> </html></pre><h2>Output</h2><p>The above code will produce the following output −</p><p><img src="https://www.tutorialspoint.com/assets/questions/media/37941/radial.jpg" class="fr-fic fr-dib" width="600" height="266"></p>
- Related Questions & Answers
- CSS3 Radial Gradients
- CSS3 Repeat Radial Gradients
- Using the CSS3 Linear and Radial Gradients
- CSS3 Linear gradients
- CSS3 Multi color Gradients
- CSS3 Transparency and Gradients
- Setting the shape of the radial gradients using CSS
- Setting the size of the radial gradients using CSS
- Create a differently spaced Color Stops with CSS Radial Gradients
- Create an evenly spaced color stops with CSS Radial Gradients
- Creating Linear Gradients using Multiple Color Stops in CSS
- Arrange two or more colors in linear formats using CSS3 Gradients
- Creating Layouts with Box-Sizing using CSS3
- Types of Gradients in CSS
- Usage of radial-gradient() CSS function
Advertisements