Front End Technology Articles - Page 654 of 860

Add shadow effects to text with CSS

Yaswanth Varma
Updated on 08-Jan-2024 13:24:36

272 Views

The shadow effects are applied to the text, which helps to improve the design and style of the style. Our website can be made more visually appealing by using the CSS shadow. These are the visual effects of drawing that look like an object’s shadow, which helps the objects have a 3-dimensional appearance. For adding shadows to texts and elements in CSS, the text-shadow and box-shadow properties are used. now, we are going to discuss about the text-shadow property. CSS text-shadow property The CSS text shadow is a property, which will add the shadow to text. A list of shadows ... Read More

CSS Text Shadow

mkotla
Updated on 29-Jun-2020 10:59:24

227 Views

CSS3 added shadow effects to text, with the text-shadow property. You can try to implement the following code to add text shadow −ExampleLive Demo                    h1 {             text-shadow: 2px 2px;          }          h2 {             text-shadow: 2px 2px red;          }          h3 {             text-shadow: 2px 2px 5px red;          }          h4 {             color: white;             text-shadow: 2px 2px 4px #000000;          }          h5 {             text-shadow: 0 0 3px #FF0000;          }          h6 {             text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;          }          p {             color: white;             text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;          }                     Welcome to my website!       Welcome to my website!       Welcome to my website!       Welcome to my website!       Welcome to my website!       Welcome to my website!       Welcome to my website!     Output

CSS Box Shadow

Arjun Thakur
Updated on 20-Jun-2020 13:24:40

280 Views

The CSS box-shadow property is used to add shadow effects to elements. The following is an example to add a box shadowExampleLive Demo                    div {             width: 300px;             height: 100px;             padding: 15px;             background-color: red;             box-shadow: 10px 10px;          }                     This is a div element with a box-shadow     Output

Types of Gradients in CSS

Priya Pallavi
Updated on 29-Jun-2020 10:17:21

282 Views

Gradients display the combination of two or more colors.The following are the types of gradients:Types of gradientsLinear Gradients(down/up/left/right/diagonally)Radial GradientsExampleLet us see an example of radial gradients:Live Demo                    #grad1 {             height: 100px;             width: 550px;             background: -webkit-radial-gradient(red 5%, green 15%, pink 60%);             background: -o-radial-gradient(red 5%, green 15%, pink 60%);             background: -moz-radial-gradient(red 5%, green 15%, pink 60%);             background: radial-gradient(red 5%, green 15%, pink 60%);          }                        

CSS3 Left to right Gradient

Chandu yadav
Updated on 29-Jun-2020 10:16:37

210 Views

You can try to run the following code to implement left to right gradient in CSS3ExampleLive Demo                    #grad1 {             height: 100px;             background: -webkit-linear-gradient(left, red , blue);             background: -o-linear-gradient(right, red, blue);             background: -moz-linear-gradient(right, red, blue);             background: linear-gradient(to right, red , blue);          }                        

Arrange two or more colors in linear formats using CSS3 Gradients

Nikitha N
Updated on 29-Jun-2020 10:16:13

132 Views

Linear gradients are used to arrange two or more colors in linear formats.ExampleYou can try to run the following code to implement linear gradients in CSS3 −Live Demo                    #grad1 {             height: 100px;             background: -webkit-linear-gradient(pink,green);             background: -o-linear-gradient(pink,green);             background: -moz-linear-gradient(pink,green);             background: linear-gradient(pink,green);          }                               Output

CSS3 Multi color Gradients

Prabhas
Updated on 29-Jun-2020 10:14:59

216 Views

You can try to run the following code to implement multi-color gradients in CSS3 −ExampleLive Demo                    #grad2 {             height: 100px;             background: -webkit-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: -o-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: -moz-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: linear-gradient(red, orange, yellow, red, blue, green,pink);          }                        

CSS3 HSL color property

Srinivas Gorla
Updated on 29-Jun-2020 10:14:27

250 Views

HSL stands for hue, saturation, lightness. Here, Huge is a degree of the color wheel, saturation and lightness are percentage values between 0 to 100%. ExampleThe following example shows HSL color property:Live Demo                    #g1 {background-color:hsl(120, 100%, 50%);}          #g2 {background-color:hsl(120,100%,75%);}          #g3 {background-color:hsl(120,100%,25%);}                     HSL colors:       Green       Normal Green       Dark Green    

CSS3 Repeat Radial Gradients

varun
Updated on 29-Jun-2020 10:14:02

258 Views

You can try to run the following code to implement repeat radial gradients in CSS3 −ExampleLive Demo                    #grad1 {             height: 100px;             width: 550px;             background: -webkit-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: -o-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: -moz-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: repeating-radial-gradient(blue, yellow 10%, green 15%);          }                        

CSS3 Radial Gradients

usharani
Updated on 29-Jun-2020 10:13:35

158 Views

Radial gradients appear at the center. You can try to run the following code to implement radial gradients in CSS3 −ExampleLive Demo                    #grad1 {             height: 100px;             width: 550px;             background: -webkit-radial-gradient(red 5%, green 15%, pink 60%);             background: -o-radial-gradient(red 5%, green 15%, pink 60%);             background: -moz-radial-gradient(red 5%, green 15%, pink 60%);             background: radial-gradient(red 5%, green 15%, pink 60%);          }                        

Advertisements