Chandu yadav has Published 1276 Articles

Show the flex lines with equal space between them

Chandu yadav

Chandu yadav

Updated on 06-Jul-2020 11:42:28

Use the align-content property with value space-between to add space between the flex lines.ExampleYou can try to run the following code to implement the space-between valueLive Demo                    .mycontainer {             display: flex;         ... Read More

Usage of repeating-linear-gradient() CSS function

Chandu yadav

Chandu yadav

Updated on 06-Jul-2020 11:18:50

Use the repeating-linear-gradient() method to repeat linear gradient.ExampleYou can try to run the following code to implement the repeating-linear-gradient() function in CSSLive demo                    #demo {             height: 300px;             background: repeating-linear-gradient(green 20%, orange 40%, maroon 40%);          }                     Repeating linear gradient.          

Wrap the flex items in reverse order with CSS

Chandu yadav

Chandu yadav

Updated on 06-Jul-2020 10:59:44

Use the flex-wrap property with wrap-reverse value to wrap flex-items in reverse order.ExampleYou can try to run the following code to implement the wrap-reverse valueLive Demo                    .mycontainer {             display: flex;         ... Read More

Usage of CSS grid-auto-rows property

Chandu yadav

Chandu yadav

Updated on 04-Jul-2020 08:00:41

Use the grid-auto-rows property to set size for the rows.ExampleYou can try to run the following code to implement the grid-auto-rows property −Live Demo                    .container {             display: grid;             grid-auto-rows: 50px;             grid-gap: 10px;             background-color: red;             padding: 10px;          }          .container>div {             background-color: yellow;             text-align: center;             padding:10px 0;             font-size: 20px;          }                              1          2          3          4          5          6          

How do I add Vibrate and sound for Notification in Android?

Chandu yadav

Chandu yadav

Updated on 03-Jul-2020 08:01:46

This example demonstrate about How do I add Vibrate and sound for Notification in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to create a transition effect with CSS?

Chandu yadav

Chandu yadav

Updated on 02-Jul-2020 08:08:02

To create a transition effect, set the property for the transition effect. With that also set the duration of effect.transition: height 5s;You can try to run the following code to create a transition effectExampleLive demo                    div {     ... Read More

Set a border around navbar with CSS

Chandu yadav

Chandu yadav

Updated on 01-Jul-2020 10:54:41

To add a border around navbar, set border to ul {    border: 2px solid blue; }ExampleYou can try to run the following code to set borderLive Demo                    ul {             list-style-type: none;   ... Read More

Role of CSS: valid Selector

Chandu yadav

Chandu yadav

Updated on 01-Jul-2020 09:20:32

Use the CSS : valid selector to style all elements with a valid value .ExampleYou can try to run the following code to implement the :valid SelectorLive Demo                    input:valid {             background: red;             color: white;          }                     Heading             The style (red color background) appears if you type a relevant/ valid email address.    

Style elements with a "required" attribute with CSS

Chandu yadav

Chandu yadav

Updated on 01-Jul-2020 09:17:28

Use the CSS : required selector to style elements with a "required" attribute.ExampleYou can try to run the following code to implement the :required SelectorLive Demo                    input:required {             background-color: orange;          }                              Subject:          Student:          

Role of CSS: out-of-range Selector

Chandu yadav

Chandu yadav

Updated on 01-Jul-2020 09:14:33

Use the CSS :out-of-range selector to style elements with a value outside a specified range.ExampleYou can try to run the following code to implement the :out-of-range selectorLive Demo                    input:out-of-range {             border: 3px dashed orange;             background: yellow;          }                           The style only works for the value entered out of range    

Advertisements