Chandu yadav has Published 1163 Articles

Create a Bordered Button Group with CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 08:18:05

364 Views

You can try to run the following code to create a bordered button group with border propertyExampleLive Demo                    .btn {             color: black;             background-color: yellow;       ... Read More

Change the background color of a button with CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 08:07:39

2K+ Views

To change the background color of a button, use the background-color property.You can try to run the following code to change button’s background colorExampleLive Demo                    .btn {             background-color: yellow;             color: black;             text-align: center;             font-size: 13px;          }                     Result       Click below for result:       Result    

Display a blue shadow on image hover with CSS

Chandu yadav

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;          }                        

How to apply a 2D or 3D transformation to an element with CSS

Chandu yadav

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    

How to perform Automated Unit Testing with JavaScript?

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:43:52

161 Views

To perform unit testing in JavaScript, use Unit.js. It is a cross-platform open-source unit testing framework.ExampleLet’s say the following in your test code −var example = ‘Welcome’; test.string(example) .isEqualTo(‘Welcome’);The function demo() displays a suit of tests, whereas demo1() is an individual test specification, demo('Welcome’, function() {    demo1('Welcome to the ... Read More

Selects all elements with CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:33:47

169 Views

To select all elements, use the * CSS Selector. You can try to run the following code to select all the elements,ExampleLive Demo                    *{             color: blue;             background-color: orange;          }                     Demo Website       Learning       Tutorials on web dev, programming, database, networking, etc.       Every tutorials has lessons with illustrations and figures.    

Set animation with a slow end using CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:29:58

649 Views

Use the animation-timing-function property, with the ease-out value to set animation with a slow end with CSSExampleLive Demo                    div {             width: 150px;             height: 200px;             position: relative;             background-color: #808000;             animation-name: myanim;             animation-duration: 2s;             animation-direction: alternate-reverse;             animation-iteration-count: 3;          }          @keyframes myanim {             from {left: 100px;}             to {left: 200px;}          }          #demo {animation-timing-function: ease-out;}                     ease-out effect    

How to convert a binary NodeJS Buffer to JavaScript ArrayBuffer?

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:28:30

599 Views

Access the buf.buffer property directly to convert a binary NodeJS Buffer to JavaScript ArrayBuffer. The write through the original Buffer instance writes the ArrayBufferView.Keep in mind that the instances of Buffer are also instances of Uint8Array in node.js 4.x and higher versions.ExampleYou can try the following code snippet to convert a ... Read More

What does int argc, char *argv[] mean in C/C++?

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:12:03

7K+ Views

argc stands for argument count and argv stands for argument values. These are variables passed to the main function when it starts executing. When we run a program we can give arguments to that program like −$ ./a.out helloExampleHere hello is an argument to the executable. This can be accessed ... Read More

What is the size of int, long type in C++ standard?

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:05:04

275 Views

The C++ standard does not specify the size of integral types in bytes. It specifies the minimum range these types must be able to hold.The size in bits can be easily found from the specified minimum range.Not referring to the standard but the commonly used sizes for various platforms are ... Read More

Advertisements