Display Blue Shadow on Image Hover with CSS

Chandu yadav
Updated on 24-Jun-2020 07:21:59

2K+ Views

To display a shadow on image hover, use the CSS box-shadow propertyExampleLive Demo                    img {             border: 2px solid orange;             border-radius: 3px;             padding: 7px;          }          img:hover {             box-shadow: 0 0 2px 2px blue;          }                        

Listing Various Options for Input Values in HTML5

Govinda Sai
Updated on 24-Jun-2020 07:21:22

192 Views

The HTML tag specifies set of options for element. You can try to run the following code to list options for input values in HTML5 −Example           HTML Datalist Tag                                                                                   Try to add any of the tutorial name mentioned above.    

Create White Text with Black Shadow using CSS

Smita Kapse
Updated on 24-Jun-2020 07:19:44

1K+ Views

Use the text-shadow property to create white text with black shadow.You can try to run the following code to implement the text-shadow property:ExampleLive Demo                    h1 {             color: white;             text-shadow: 3px 3px 3px #000000;          }                     Heading One       Above heading has a text shadow effect.    

Create Red Neon Glow Shadow Using CSS

George John
Updated on 24-Jun-2020 07:18:37

525 Views

To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve thisExampleLive Demo                    h1 {             text-shadow: 0 0 4px #FF0000;          }                     Heading One       Above heading has a read neon glow shadow effect.    

Fade In Tooltip with CSS Animation

Nitya Raut
Updated on 24-Jun-2020 07:15:39

414 Views

To fade in tooltip text with CSS, you can try to run the following code:ExampleLive Demo           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: blue;          color: #fff;          z-index: 1;          top: -5px;          right: 110%;          text-align: center;          border-radius: 6px;          padding: 5px 0;          position: absolute;          opacity: 0;          transition: opacity 1s;       }       .mytooltip {          position: relative;          display: inline-block;          margin-left: 150px;       }       .mytooltip .mytext:after {          content: "";          position: absolute;          top: 50%;          left: 100%;          margin-top: -5px;          border-width: 6px;          border-style: solid;          border-color: transparent transparent transparent blue;       }       .mytooltip:hover .mytext {          visibility: visible;          opacity: 1;       }               Keep mouse cursor over me           My Tooltip text          

CSS counter-increment Property

Jennifer Nicholas
Updated on 24-Jun-2020 07:14:58

171 Views

To increment a counter value with CSS, use the counter-increment property.You can try to run the following code to implement the counter-implement property −ExampleLive Demo                    body {             counter-reset: section;          }          h2::before {             counter-increment: section;             content: "Fruit " counter(section) " - ";          }                     Fruits       Mango       Kiwi    

Usage of Transform Property with CSS

Vrundesha Joshi
Updated on 24-Jun-2020 07:14:13

98 Views

The transform property in CSS is used to apply a 2D or 3D transformation to an element. You can try to run the following code to implement the transform property −ExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: gray;             transform: rotate(10deg);          }                     Rotation       Demo    

Apply 2D or 3D Transformation to an Element with CSS

Chandu yadav
Updated on 24-Jun-2020 07:13:22

182 Views

Apply a 2D or 3D transformation to an element with the transform property in CSS. You can try to run the following code to rotate an element using transformationExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: gray;             transform: rotate(10deg);          }                     Rotation      Demo    

Select UL Elements Preceded by P Elements with CSS

Arjun Thakur
Updated on 24-Jun-2020 07:12:49

2K+ Views

Use the element ~ element selector to select elements preceded by element. You can try to run the following code to implement thisExampleLive Demo                    p~ul {             color: white;             background-color: blue;          }                     Demo Website       Fruits                Vegetables are good for health.                       Spinach             Onion             Capsicum                       Fruits are good for health.                Apple          Orange          Kiwi          

Select All

Elements Inside

George John
Updated on 24-Jun-2020 07:08:44

4K+ Views

Use the element element selector to select all elements inside another element.You can try to run the following code to implement element element selector,ExampleLive Demo                    div p {             color: white;             background-color: blue;          }                     Demo Website       Fruits       Fruits are good for health.                This is demo text.          

Advertisements