George John has Published 1081 Articles

Getting values from HTML5 Canvas to JavaScript

George John

George John

Updated on 24-Jun-2020 14:03:43

433 Views

When we draw anything on Canvas, it keeps no memory of anything that was drawn. While drawing we need to keep track of all the necessary information yourself as we draw. Therefore, it is not feasible to get value from HTML5 canvas to JavaScript as it keeps no memory. It ... Read More

How to change max_allowed_packet size in MySQL?

George John

George John

Updated on 24-Jun-2020 13:58:44

2K+ Views

The max_allowed_packet size is a session variable and is also a read only variable.To check what is the present value of max_allowed_packet, the command show variables is used. It is given as follows −mysql> show variables like 'max_allowed_packet';The following is the output+--------------------+---------+ | Variable_name | ... Read More

How to save canvas data to file in HTML5?

George John

George John

Updated on 24-Jun-2020 13:55:49

2K+ Views

A Canvas is just a rectangular area on the HTML page. We can draw graphics in this rectangular area (Canvas) with the help of JavaScript. Canvas can be created in HTML5 as −                                 This creates an ... Read More

How to modify the size of column in MySQL table?

George John

George John

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

782 Views

We can modify a column size with the help of ALTER command. Let us see how to modify column size. Suppose we are defining any column with some size. At the time of inserting if we are giving more size in comparison to the one we defined, then an error ... Read More

How to position text to bottom left on an image with CSS

George John

George John

Updated on 24-Jun-2020 13:44:55

2K+ Views

To position text to bottom left, use the bottom and left property. You can try to run the following code to position text to bottom left on an imageExampleLive Demo                    .box {             position: relative; ... Read More

Play local (hard-drive) video file with HTML5 video tag?

George John

George John

Updated on 24-Jun-2020 13:36:36

1K+ Views

The tag is used to add video, with the following video formats − MP4, WebM and OggOn selecting a file via the input element.The change event is firedThe event is fired for , , and elements when a change to the element's value is performed by the user.Getting ... Read More

How to fill columns with CSS

George John

George John

Updated on 24-Jun-2020 11:47:19

118 Views

To fill columns, use the column-fill property. You can try to run the following code to implement the column-fill property, with balance form:ExampleLive Demo                    .demo {             column-count: 4;           ... Read More

Set style for pagination with CSS

George John

George John

Updated on 24-Jun-2020 09:50:08

127 Views

You can try to run the following code to style pagination with CSSExampleLive Demo                    .demo {             display: inline-block;          }          .demo a {             color: red;             float: left;             padding: 7px 10px;               text-decoration: none;          }                     Our Quizzes                          

Usage of CSS grid-row-gap property

George John

George John

Updated on 24-Jun-2020 08:27:22

81 Views

Set gap between Grid rows with CSS. You can try to run the following code to implement the grid-row-gap property.ExampleLive Demo                    .container {             display: grid;             background-color: green; ... Read More

Create red neon glow shadow using CSS

George John

George John

Updated on 24-Jun-2020 07:18:37

510 Views

To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve thisExampleLive Demo                    h1 {             text-shadow: 0 0 4px #FF0000;          }                     Heading One       Above heading has a read neon glow shadow effect.    

Advertisements