Usharani has Published 80 Articles

Extend the animation properties in both directions with CSS

usharani

usharani

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

107 Views

Use the animation-fill-mode property with the value both to extend the animation properties in both directions.ExampleLive Demo                    div {             width: 150px;             height: 200px;             position: relative;             background: red;             animation-name: myanim;             animation-duration: 2s;             animation-fill-mode: both;          }          @keyframes myanim {             from {left: 0px; background-color: green;}             to {left: 200px; background-color: blue;}          }                        

How to create an image gallery with CSS

usharani

usharani

Updated on 23-Jun-2020 16:29:42

540 Views

To create an image gallery with CSS is quite easy. You can try to run the following code to achieve this. A gallery of 3 images is created here, ExampleLive Demo                    div.myGallery {             ... Read More

CSS padding-box Value

usharani

usharani

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

155 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                 ... Read More

Selects all elements with rel=”nofollow” with CSS

usharani

usharani

Updated on 23-Jun-2020 15:25:05

203 Views

Use the [attribute = ”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute="value"] Selector. Here, we have considered the attribute as rel, ExampleLive Demo                    a[rel ... Read More

How can we write PHP script to release cursor memory associated with MySQL result?

usharani

usharani

Updated on 22-Jun-2020 14:03:17

188 Views

As we know that PHP uses the msql_free_result() function to release cursor memory associated with MySQL result. To illustrate it we are having the following example −ExampleIn this example, we are writing the following PHP script that will release the memory after fetching the records from a table named ‘Tutorials_tbl’.Read More

Print first letter of each word in a string in C#

usharani

usharani

Updated on 22-Jun-2020 12:58:16

1K+ Views

Let’s say the string is −string str = "Never Give Up!";Firstly, split each word −string[] strSplit = str.Split();Now, loop through each word and use the substring method to display the first letter as shown in the following code −Example Live Demousing System; public class Program {    public static void Main() ... Read More

C# Equivalent to Java's Double Brace Initialization?

usharani

usharani

Updated on 22-Jun-2020 12:49:01

210 Views

Java’s Double Brace Initialization does the same work what a single brace can achieve in C#.Double Brace creates and initialize objects in a single Java expression.Let’s say the following is in Java −ExampleList list = new List() {{    add("One");    add("Two");    add("Three");    add("Four"); }}The same you can ... Read More

How to implement operator overloading in C#?

usharani

usharani

Updated on 22-Jun-2020 12:31:45

86 Views

Overloaded operators are functions with special names. The keyword operator is used to overload operators followed by the symbol for the operator being definedLet us see how to implement operator overloading −Example Live Demousing System; namespace Demo {    class Box {       private double length; // Length of ... Read More

How to use MySQL DISTINCT clause on multiple columns?

usharani

usharani

Updated on 22-Jun-2020 12:05:52

5K+ Views

We can use the DISTINCT clause on more than columns in MySQL. In this case, the uniqueness of rows in the result set would depend on the combination of all columns.ExampleConsider the following table ‘testing’ having 10 rows −mysql> select * from testing; +------+---------+---------+ | id   | fname   ... Read More

While using the ROLLUP modifier, is it possible to use a MySQL ORDER BY clause to sort the result?

usharani

usharani

Updated on 22-Jun-2020 11:11:44

249 Views

Actually ROLLUP and ORDER BY are mutually exclusive in MySQL hence it is not a good practice to use both of them in a query. But still, if we use ROLLUP in ORDER BY then the main disadvantage is that the summary rows would get sorted along with the rows ... Read More

Advertisements