Arjun Thakur has Published 1025 Articles

Align the flex items in the middle of the container in CSS

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 08:23:19

169 Views

Use the align-items property with value center to align flex items in the middle.ExampleYou can try to run the following code to implement the center valueLive Demo                    .mycontainer {             display: flex;         ... Read More

Display the flex lines in the end of the container with CSS

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 08:10:53

160 Views

Use the align-content property with value flex-end to set the flex lines in the end.ExampleYou can try to run the following code to implement the flex-end valueLive Demo                    .mycontainer {             display: flex;       ... Read More

Return the value of an attribute of the selected element using CSS

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 07:03:06

282 Views

The attr() CSS function returns the value of an attribute of the selected element using CSSExampleYou can try to run the following code to implement the attr() function in CSSLive Demo                    a:before {content: " (" attr(href) ")";}                     Information Resource                Resource:Welcome to Qries          

How to set android notification icon?

Arjun Thakur

Arjun Thakur

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

2K+ Views

This example demonstrate about How to set android notification iconStep 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 − Add ... Read More

How to add a colored border to a button with CSS?

Arjun Thakur

Arjun Thakur

Updated on 03-Jul-2020 07:44:36

947 Views

To add colored border, use the CSS border property.ExampleYou can try to run the following code to add a colored border.Live Demo                    .button {             background-color: yellow;             color: black;             text-align: center;             font-size: 15px;             padding: 20px;             border-radius: 15px;             border: 3px dashed blue;          }                     Result       Click below for result:       Result    

CSS object-fit Property Values

Arjun Thakur

Arjun Thakur

Updated on 03-Jul-2020 07:37:12

135 Views

The object-fit property in CSS is used to resize image or video to fit its container. It has the following valuescontain: Content is scaled to fitcover: clipped to fitfill: fills the content box.ExampleYou can try to run the following code to implement object-fit property with the cover value.Live Demo   ... Read More

Role of CSS :target Selector

Arjun Thakur

Arjun Thakur

Updated on 01-Jul-2020 09:19:09

274 Views

Use the CSS :target selector to highlight active HTML anchor with CSS.ExampleYou can try to run the following code to implement the :target SelectorLive Demo                    :target {             border: 2px solid #D4D4D4;     ... Read More

CSS position: sticky;

Arjun Thakur

Arjun Thakur

Updated on 01-Jul-2020 09:17:53

419 Views

The position: sticky; property allows you to position an element based on scroll position. Set an element as sticky on the top when a user scrolls down.ExampleYou can try to run the following code to implement CSS position: sticky;Live Demo                 ... Read More

Role of CSS :only-child Selector

Arjun Thakur

Arjun Thakur

Updated on 01-Jul-2020 08:59:40

160 Views

Use the CSS :only-child selector to style every element that is the only child of its parent.ExampleYou can try to run the following code to implement the :only-child selectorLive Demo                    p:only-child {             ... Read More

Generation of .HEX file using a linker

Arjun Thakur

Arjun Thakur

Updated on 30-Jun-2020 13:39:31

604 Views

The file MULT.ASM which is created by using an editor is simply a text file. We cannot execute this file directly. At first we have to assemble the file, and then we have to link it. The step of assembly the translation of the program of assembly language to machine ... Read More

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