Found 1566 Articles for CSS

Display the overflowed content when hovering over the element with CSS

Nancy Den
Updated on 23-Jun-2020 15:48:59

2K+ Views

To display the overflowed content while hovering over elements, you can try to run the following code:ExampleLive Demo                    div.demo {             white-space: nowrap;             width: 180px;             overflow: hidden;             border: 2px solid blue;         }          div.demo:hover {             text-overflow: inherit;             overflow: visible;          }                     Hover to see the complete text below:             Demo Text that will hide in this box.    

Which CSS property is used to run Animation in Reverse Direction?

Ankith Reddy
Updated on 23-Jun-2020 15:48:25

215 Views

Use the animation-direction property to run animation in reverse direction. The property is used with the reverse animation value to achieve this.ExampleLive Demo                    div {             width: 150px;             height: 200px;             background-color: yellow;             animation-name: myanim;             animation-duration: 2s;             animation-direction: reverse;          }          @keyframes myanim {             from {                background-color: green;             }             to {                background-color: blue;             }          }                        

CSS padding-box Value

usharani
Updated on 23-Jun-2020 15:49:33

168 Views

Use the CSS background-origin property to set the padding-box value. With the padding-box value, the background image begins from the upper left corner of the padding edge.You can try to run the following code to implement the padding-box value:ExampleLive Demo                    #value1 {             border: 3px solid blue;             padding: 30px;             background: url(https://www.tutorialspoint.com/assets/videotutorials/courses/html_online_training/380_course_216_image.jpg);             background-repeat: no-repeat;             background-origin: padding-box;          } ... Read More

Add a blur effect to the shadow with CSS

Chandu yadav
Updated on 23-Jun-2020 15:47:46

1K+ Views

To add a blur effect to the shadow, use the box-shadow property.You can try to run the following code to add blur effectExampleLive Demo                    h2 {             box-shadow: 10px 10px 7px green;             height: 50px;             background-color: yellow;          }                     Heading Two       Above heading has shadow.    

Add a color to the shadow with CSS

Daniol Thomas
Updated on 23-Jun-2020 15:44:27

192 Views

To add a color to the shadow, use the box-shadow property and set the color, with the height and width.You can try to run the following code to set the color to shadow:ExampleLive Demo                    h2 {             box-shadow: 10px 10px green;             height: 70px;             background-color: red;          }                     Heading Two       Above heading has shadow.    

Selects all elements with a lang attribute value starting with "en" with CSS

Arjun Thakur
Updated on 23-Jun-2020 15:43:53

137 Views

Use the [attribute|=”value”] selector to select elements with the specified attribute starting with a specified value.You can try to run the following code to implement CSS [attribute|=”value”] Selector,ExampleLive Demo                    [lang| = en] {             border: 5px solid orange;             border-radius: 5px;          }                     Hello       Hei    

How to create fading effect with CSS

radhakrishna
Updated on 23-Jun-2020 15:41:57

265 Views

To create a fading effect with CSS, use the c You can try to run the following code for fading effect:ExampleLive Demo                    #demo {             height: 100px;                background: linear-gradient(to right, rgba(255,50,30,0), rgba(255,50,30,1));             }                           Linear Gradient       Fading Effect    

Style input type reset with CSS

varma
Updated on 23-Jun-2020 15:30:52

2K+ Views

The input type button can be a submit button or reset button. With CSS, we can style any button on a web page.You can try to run the following code to style input type button:ExampleLive Demo                    input[type = submit], input[type = reset] {             background-color: orange;             border: none;             text-decoration: none;             color: white;             padding: 20px 20px;             margin: 20px 20px;             cursor: pointer;          }                     Fill the below form,                Subject                    Student                                        

Add a background color to the form input with CSS

Arjun Thakur
Updated on 23-Jun-2020 15:29:53

7K+ Views

To add background color to the form input, use the background-color property.You can try to run the following code to implement the background color property to formExampleLive Demo                    input[type=text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;             background-color: gray;          }                     Fill the below form,                Subject                    Student                    

Style select options with CSS

Nishtha Thakur
Updated on 23-Jun-2020 15:28:35

2K+ Views

To style the options in , you can try to run the following code,ExampleLive Demo                    select {             width: 100%;             padding: 10px 15px;             border: 1px dashed blue;             border-radius: 4px;             background-color: orange;          }                     Learn,                             Java             Ruby             Oracle             Tableau                    

Advertisements