Learn CSS

"If you want to learn how to style and design web pages, you need to master CSS. CSS stands for Cascading Style Sheets, and it is the language that defines the appearance and layout of HTML elements. In this course, you will learn the basics of CSS, such as selectors, properties, values, units, and colors. You will also learn how to use CSS to create responsive web design, animations, transitions, and more. By the end of this course, you will be able to create beautiful and functional web pages using CSS."

CSS Shadow Effects

CSS Shadow Effects are a great way to add depth and dimension to elements on a webpage. Shadows can be used to make text more legible, give images a more realistic look, or create a sense of depth on a flat design. CSS provides several properties to create various shadow effects.

 

The following are the CSS shadow effect properties:

 

box-shadow: 

This property creates a shadow effect around an element. It takes four values: horizontal offset, vertical offset, blur radius, and color. For example:


box-shadow: 2px 2px 5px #888888;

 

text-shadow: 

This property creates a shadow effect around text. It takes three values: horizontal offset, vertical offset, and color. For example:


text-shadow: 1px 1px #888888;

 

drop-shadow(): 

This function creates a shadow effect around an element. It takes three values: horizontal offset, vertical offset, and blur radius. For example:


filter: drop-shadow(2px 2px 5px #888888);

 

filter: blur(): 

This function blurs an element. It takes one value: the blur radius. For example:


filter: blur(2px);

 

filter: grayscale(): 

This function converts an element to grayscale. It takes one value: the percentage of grayscale to apply. For example:


filter: grayscale(50%);

 

filter: brightness(): 

This function adjusts the brightness of an element. It takes one value: the percentage of brightness to apply. For example:


filter: brightness(150%);

 

filter: contrast(): 

This function adjusts the contrast of an element. It takes one value: the percentage of contrast to apply. For example:


filter: contrast(150%);


These are just a few examples of the many CSS shadow effects that you can use to enhance your web design. By experimenting with these properties and functions, you can create unique and visually appealing effects that will help your website stand out.