Arjun Thakur has Published 1025 Articles

Selects all elements that are placed immediately after

Arjun Thakur

Arjun Thakur

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

335 Views

Use the element+element selector to select elements placed after first specified element. You can try to run the following code to implement this,ExampleLive Demo                    div + p {             color: white;             background-color: blue;          }                     Demo Website       Fruits                This is demo text.             Fruits are good for health.       Fruits makes you healthy.    

Is segmentation fault actual undefined behavior in C++?

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 06:08:41

486 Views

Undefined behavior is a way to give freedom to implementors (e.g. of compilers or of OSes) and to computers to do whatever they "want", in other words, to not care about consequences.The cases in which segmentation fault occurs are transient in nature. They won't always result in a segmentation fault ... Read More

Selects every element whose alt attribute value begins with "Tutor" with CSS

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 06:00:06

155 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                    [alt|=Tutor] {             border: 5px solid orange;             border-radius: 5px;          }                              

CSS transition-duration property

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 05:34:36

95 Views

Use the transition-duration property to set the duration of transitionExampleLive Demo                    div {             width: 150px;             height: 150px;             background: blue;             transition-property: height;             transition-duration: 2s;          }          div:hover {             height: 200px;          }                     Heading One       Hover over the below box to change its height.          

Build a radial gradient with the shape of a circle

Arjun Thakur

Arjun Thakur

Updated on 23-Jun-2020 16:27:08

242 Views

To create a circle with radial gradient, you can try to run the following code. Set another parameter in radial gradient for shapes like circleExampleLive Demo                    #demo {             height: 400px;             background: radial-gradient(circle, red , blue, yellow);          }                     Radial Gradient       Radial Gradients    

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

Arjun Thakur

Arjun Thakur

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

220 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    

Add a background color to the form input with CSS

Arjun Thakur

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                    

ListIterator in Java

Arjun Thakur

Arjun Thakur

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

416 Views

The java.util.LinkedList.listIterator(int index) method returns a list-iterator of the elements in this list (in proper sequence), starting at the specified position in the list.DeclarationFollowing is the declaration for java.util.LinkedList.listIterator() methodpublic ListIterator listIterator(int index)Parametersindex − index of the first element to be returned from the list-iteratorReturn ValueThis method returns a ListIterator ... Read More

Java program to check string as palindrome

Arjun Thakur

Arjun Thakur

Updated on 23-Jun-2020 15:21:47

4K+ Views

A string is Palindrome if position of each character remain same in case even string is reversed.For example 'MADAM' is a palidrome string as position of each character remain same even if string 'MADAM' is reversed.Now in order to identify a string as palindrome or not we can use library ... Read More

Instance variable as final in Java

Arjun Thakur

Arjun Thakur

Updated on 23-Jun-2020 15:20:34

2K+ Views

final is a non-access modifier for Java elements. The final modifier is used for finalizing the implementations of classes, methods, and variables. A final instance variable can be explicitly initialized only once.A final instance variable should be initialized at one of the following occasions −At time of declaration.In constructor.In instance ... Read More

Advertisements