George John has Published 1234 Articles

Create a Horizontal Navigation Bar with CSS

George John

George John

Updated on 01-Jul-2020 11:02:38

3K+ Views

To create a horizontal navigation bar, set the elements as inline.ExampleYou can try to run the following code to create horizontal navigation barLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          .active {             background-color: #4CAF50;             color: white;          }          li {             border-bottom: 1px solid #555;             display: inline;          }                              Home          Company          Product          Services          Contact          

Style all visited links with CSS

George John

George John

Updated on 01-Jul-2020 10:50:13

386 Views

To style all visited links, use the CSS :visited selector.ExampleYou can try to run the following code to implement the :visited selectorLive Demo                    a:link, a:visited {             background-color: white;           ... Read More

Style elements with a "readonly" attribute with CSS

George John

George John

Updated on 01-Jul-2020 09:15:24

2K+ Views

To select elements that are read-only, use the CSS :read-only selector.ExampleYou can try to run the following code to implement the :read-only selectorLive Demo                    input:read-only {             background-color: blue;             color: white;          }                              Subject:          Student:          

Advantage of multiple chip select lines

George John

George John

Updated on 30-Jun-2020 14:53:07

184 Views

Let’s consider that the EPROMs we have are having the starting addresses as 4000H, 4400H, …, 5C00H. 4000H in binary is 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0. In such a case, the 74138 has to be selected for the condition ... Read More

How to log in as a different user on MySQL?

George John

George John

Updated on 30-Jun-2020 13:10:49

14K+ Views

If you want to login as a different user on MySQL, you need to use “mysql -u -p command”. The syntax is as follows to login as a different user.>mysql -u yourUsername -p After pressing enter key Enter password −To understand the above syntax, let us create a user in ... Read More

Fetch rows where first character is not alphanumeric in MySQL?

George John

George John

Updated on 30-Jun-2020 12:42:48

475 Views

To fetch rows where first character is not alphanumeric, you can use the following regular expression.Case 1 − If you want those rows that starts from a digit, you can use the following syntax −SELECT *FROM yourTableName WHERE yourColumnName REGEXP '^[0-9]';Case 2 − If you want those rows that start ... Read More

gmp_intval() function in PHP

George John

George John

Updated on 30-Jun-2020 11:37:58

19 Views

The gmp_intval() function returns the integer value of a variable.Syntaxintval ( $var, $base )Parametersvar − The variable which needs to be converted to its integer value.base − The base for conversion of $var to its corresponding integer.ReturnThe gmp_intval() function returns the integer value for var.Example Live DemoThe following is an example ... Read More

gmp_cmp() function in PHP

George John

George John

Updated on 30-Jun-2020 11:30:46

54 Views

The gmp_cmp() function compares two GMP numbers.Syntaxgmp_cmp(n1, n2)Parametersn1 − The first GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.n2 − The second GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.ReturnThe ... Read More

Role of CSS :nth-child(n) Selector

George John

George John

Updated on 30-Jun-2020 11:18:06

136 Views

Use the CSS :nth-child(n) selector to style every element that is the second child of its parent with CSS. You can try to run the following code to implement the :nth-child(n) selectorExampleLive Demo                    p:nth-child(4) {       ... Read More

Style every element that is the nth element of its parent with CSS

George John

George John

Updated on 30-Jun-2020 11:15:07

102 Views

Use the CSS :nth-of-type(n) selector to style every element that is the nth element of its parent. You can try to run the following code to implement the :nth-of-type(n) selectorExampleLive Demo                    p:nth-of-type(2) {         ... Read More

Previous 1 ... 3 4 5 6 7 ... 124 Next
Advertisements