Nikitha N has Published 111 Answers

Define skew transforms along with x axis using CSS

Nikitha N

Nikitha N

Updated on 29-Jun-2020 11:13:05

You can try to run the following code to implement skew transforms along with x-axis using CSS −ExampleLive Demo<html>    <head>       <style>          div {             width: 300px;             height: 100px;       ... Read More

Arrange two or more colors in linear formats using CSS3 Gradients

Nikitha N

Nikitha N

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

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<html>    <head>       <style>          #grad1 {             height: 100px;     ... Read More

CSS border-image-width

Nikitha N

Nikitha N

Updated on 29-Jun-2020 09:20:58

The border-image-width property is used to set the border image width. You can try to run the following code to implement the border-image-width property −ExampleLive Demo<html>    <head>       <style>          #borderimg1 {             border: 15px solid transparent;     ... Read More

How to represent text that must be isolated from its surrounding for bidirectional text formatting in HTML?

Nikitha N

Nikitha N

Updated on 24-Jun-2020 07:36:07

Use embed text with a different direction from another text, with the <bdi> tag, to represent isolated text.ExampleYou can try to run the following code to represent text to be isolated from its surrounding for bidirectional text formatting −<!DOCTYPE html> <html>    <head>       <title>HTML bdi Tag</title>   ... Read More

Is it correct to use JavaScript Array.sort() method for shuffling?

Nikitha N

Nikitha N

Updated on 24-Jun-2020 06:40:54

Yes, you can use the JavaScript Array.sort() method for shuffling. Let’s see howExamplefunction shuffleDisplay(arr) {    var tmp, current;        // calculating length    var top = arr.length;    if(top) while(--top) {       current = Math.floor(Math.random() * (top + 1));       tmp = ... Read More

Difference between private, public, and protected modifiers in C++

Nikitha N

Nikitha N

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

Data hiding is one of the important features of Object Oriented Programming which allows preventing the functions of a program to access directly the internal representation of a class type. The access restriction to the class members is specified by the labeled access modifiers − public, private, and protected sections ... Read More

What does the explicit keyword mean in C++?

Nikitha N

Nikitha N

Updated on 24-Jun-2020 06:18:59

The explicit keyword in C++ is used to mark constructors to not implicitly convert types. For example, if you have a class Foo −class Foo { public:     Foo(int n); // allocates n bytes to the Foo object     Foo(const char *p); // initialize object with char *p ... Read More

The Biggest Changes in C++11

Nikitha N

Nikitha N

Updated on 24-Jun-2020 05:56:48

C++11 was the modern C++ standard published in 2011. This brought many major extensions and improvements to the existing language. Following are the major changes/additions of C++11 −Initializer listsAutomatic type deductionRvalue references and move constructorsconstexpr – Generalized constant expressionsModification to the definition of plain old dataUniform initializationRange-based for loopLambda functions ... Read More

How to set the page-break behavior after an element with JavaScript?

Nikitha N

Nikitha N

Updated on 23-Jun-2020 12:36:09

Use the pageBreakAfter property in JavaScript to set the page-break behavior after an element. Use the always property for page after an element.Note − The changes would be visible while printing or viewing the print preview.ExampleYou can try to run the following code to return the page-break behavior after an element ... Read More

How to hide HTML element with JavaScript?

Nikitha N

Nikitha N

Updated on 23-Jun-2020 11:52:35

Use the visibility property in JavaScript to hide an element. You can try to run the following code to learn how to work with visibility property to hide an element −Example<!DOCTYPE html> <html>    <body>       <p id = "pid">Demo Text</p>       <button type = ... Read More

1 2 3 4 5 6 7 ... 12 Next
Advertisements