George John has Published 1299 Articles

Role of CSS flex-direction property column-reverse value

George John

George John

Updated on 03-Jul-2020 08:02:31

Use the flex-direction property with row value to set the flex-items vertically, in reverse order.ExampleYou can try to run the following code to implement the column-reverse value −Live Demo                    .mycontainer {             display: flex;   ... Read More

How to play ringtone/alarm/notification sound in Android?

George John

George John

Updated on 03-Jul-2020 08:02:25

This example demonstrate about How to play ringtone/alarm/notification sound in Android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     Step 3 − ... Read More

Role of CSS justify-content property flex-start value

George John

George John

Updated on 03-Jul-2020 07:52:50

Use the justify-content property with value flex-start to align the flex-items at the beginning.ExampleYou can try to run the following code to implement the flex-start value −Live Demo                    .mycontainer {             display: flex;       ... Read More

Usage of transform-origin property with CSS

George John

George John

Updated on 02-Jul-2020 08:04:18

Use the transform-origin property to change the position on transformed elements with CSS.ExampleYou can try to run the following code to learn how to work with transform-origin property with CSSLive Demo                    .demo1 {             ... Read More

Create a Horizontal Navigation Bar with CSS

George John

George John

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

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

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

Role of CSS :root Selector

George John

George John

Updated on 01-Jul-2020 09:18:16

Use the CSS : root selector to style document’s root element.ExampleYou can try to run the following code to implement the :root SelectorLive Demo                    :root {             background: blue;             color: white;          }                     Heading       This is demo text.    

Style elements with a "readonly" attribute with CSS

George John

George John

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

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

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

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

Advertisements