Varma has Published 69 Articles

Set whether the text of the element can be selected or not with CSS

varma

varma

Updated on 25-Jun-2020 13:16:59

79 Views

Use the CSS user-select property to set whether the text of the element can be selected or not with CSS:ExampleLive Demo                    div {             user-select: none;          }                     This is demo heading       This is demo text. You won't be able to select it.    

HTML5/CSS align list-items depending on other columns mutual height

varma

varma

Updated on 24-Jun-2020 13:54:45

166 Views

Align list-item with the help of flex. Flex will make columns flexible according to content. The wrapper will layout columns in a row..wrap{    display : flex }// This will help wrapper to become flexible .wrap.col{    flex: 1 0 33%; }Flex is basically a property which helps in making ... Read More

Selects all elements with class="mydemo" with CSS

varma

varma

Updated on 24-Jun-2020 05:50:55

100 Views

To select all elements with class=”mydemo”, you can try to run the following code. Use the .class CSS selector to achieve this,ExampleLive Demo                    .demo {             border: 2px dashed orange;          }                     Heading 1       Heading 1       Heading 2    

Style input type reset with CSS

varma

varma

Updated on 23-Jun-2020 15:30:52

2K+ Views

The input type button can be a submit button or reset button. With CSS, we can style any button on a web page.You can try to run the following code to style input type button:ExampleLive Demo                    input[type = submit], ... Read More

How to write PHP script to fetch data, based on some conditions, from MySQL table?

varma

varma

Updated on 22-Jun-2020 14:02:39

589 Views

If we want to fetch conditional data from MySQL table then we can write WHERE clause in SQL statement and use it with a PHP script. While writing the PHP script we can use PHP function mysql_query(). This function is used to execute the SQL command and later another PHP ... Read More

Matching strings with a wildcard in C#

varma

varma

Updated on 22-Jun-2020 13:15:59

3K+ Views

Commonly used wildcard characters are the asterisk (*). It represents zero or more characters in a string of characters.In the following example asterisk is used to match words that begins with m and ends with e −@”\bt\S*s\b”The following is the complete code −Example Live Demousing System; using System.Text.RegularExpressions; namespace Demo ... Read More

Main thread vs child thread in C#

varma

varma

Updated on 22-Jun-2020 12:00:04

625 Views

Main ThreadThe first thread to be executed in a process is called the main thread. When a C# program starts execution, the main thread is automatically created.Child ThreadThe threads created using the Thread class are called the child threads of the main thread.Here is an example showing how to create ... Read More

How can MySQL produce the output in a vertical format rather than tabular format?

varma

varma

Updated on 22-Jun-2020 11:09:33

366 Views

By using \G at the end of MySQL statement, it returns the output in a vertical format rather than a tabular format. Consider the example below −mysql> Select curdate(); +------------+ | curdate()  | +------------+ | 2017-11-06 | +------------+ 1 row in set (0.00 sec) mysql> Select CURDATE()\G *************************** 1. ... Read More

Align elements using the CSS float property

varma

varma

Updated on 22-Jun-2020 10:34:45

110 Views

To align elements using the float property in CSS, you can try to run the following code −ExampleLive Demo                    .demo {             float: right;             width: 200px;             border: 1px dashed blue;             padding: 5px;          }                     Heading                This is demo text and right aligned.           Output

How MySQL IF ELSE statement can be used in a stored procedure?

varma

varma

Updated on 22-Jun-2020 05:46:44

14K+ Views

MySQL IF ELSE statement implements a basic conditional construct when the expression evaluates to false. Its syntax is as follows −IF expression THEN    statements; ELSE    else-statements; END IF;The statements must end with a semicolon.To demonstrate the use of IF ELSE statement within MySQL stored procedure, we are creating the following ... Read More

Advertisements