cover-img

CSS Colors

16 September, 2022

0

0

0

CSS Color is a function of CSS in which we can use 100s of colors to make a website beautiful.

Types

There are three methods to change the color of elements.

1. Color By Name

In this method we can directly change the color of element by its name.
img

2. Color By rgb

In this method we have to specify color values of red(r),green(g) and blue(b) so that one color is appear by mixture of all this.
In the rgb there is also 'a' value in which a stands for alpha.which controls the transparency.
img

3. Color by hex value

Hex value which define by '#' in front of it. and can found any color picker from internet.
Just like that
img
and Syntax is
img
Note : In the all the above syntax I mention only .class_name but this is also same for #id.

0

0

0

Rohit Rajvaidya

Aurangabad,Maharashtra,India

FrontendDeveloper | Learning in public | #OpenSource Contributor | I have learned HTML5 and CSS3 and JavaScript currently working on ReactJS

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

© Copyright 2025. Showcase Creators Inc. All rights reserved.