

- 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
Define colors using the Hue-Saturation-Lightness-Alpha model (HSLA) with CSS
<p>To define colors using the Hue-Saturation-Lightness model (HSL) with Opacity, use the hsla() CSS method.</p><h2>Example</h2><p>You can try to run the following code to implement the hsla() function in CSS</p><p><a class="demo" href="http://tpcg.io/o6uODv" rel="nofollow noopener noreferrer" target="_blank">Live Demo</a></p><pre class="prettyprint notranslate"><!DOCTYPE html> <html> <head> <style> h1 { background-color:hsl(0,100%,50%); } h2 { background-color:hsl(192,89%,48%); } p { background-color:hsla(290,100%,50%,0.3); } </style> </head> <body> <h1>Red Background</h1> <h2>Blue Background</h2> <p>This is demo text!</p> </body> </html></pre>
- Related Questions & Answers
- Define colors using the Hue-Saturation-Lightness model (HSL) with CSS
- Define colors using the Red-Green-Blue-Alpha model (RGBA) with CSS
- Define colors using the Red-Green-Blue model (RGB) with CSS
- Define the CSS Box Model
- PyTorch – Randomly change the brightness, contrast, saturation and hue of an image
- Usage of hsla() CSS function
- CSS Alpha Channel filter
- Adjusting the Saturation of Images using CSS3
- Define skew transforms along with x axis using CSS
- Define skew transforms along with y axis using CSS
- Define a Cubic Bezier curve using CSS
- How to change bullet colors for lists with CSS?
- Convert the colors of the object to 256 shades of gray with CSS
- Applying Hue Rotation on Image using CSS3
- CSS3 HSLA color property
Advertisements