Arjun Thakur has Published 1176 Articles

What do you know about the train with no engine India just launched?

Arjun Thakur

Arjun Thakur

Updated on 27-Apr-2022 11:55:32

83 Views

Indian railway has recently launched a high-speed train, which has no engine. It’s named Train 18 or T18. Its first journey was from Delhi to Bhopal. T8 is the first high-speed Indian train, which ran with a speed of 160 km/h.The manufacturing of this train has been done in Chennai’s ... Read More

HTML5 Canvas Degree Symbol

Arjun Thakur

Arjun Thakur

Updated on 05-Apr-2022 12:35:42

278 Views

For HTML5 Canvas degree symbol, try to run the following code −                          body {             margin:5em;             background:#eee;             text-align:center ... Read More

How to draw an oval in HTML5 canvas?

Arjun Thakur

Arjun Thakur

Updated on 16-Dec-2021 12:13:41

641 Views

You can try to run the following code to draw an oval in HTML5 canvas −Example                                  // canvas          var c = document.getElementById('newCanvas');         ... Read More

How to resize Image in Android App?

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 19:40:02

2K+ Views

This example demonstrate about How to resize Image in Android App.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.           ... Read More

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

Arjun Thakur

Arjun Thakur

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

97 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

112 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

222 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

1K+ 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

644 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

75 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

Advertisements