George John has Published 1167 Articles

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

George John

George John

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

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

873 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

Local Class in C++

George John

George John

Updated on 24-Jun-2020 11:23:17

2K+ Views

A class declared inside a function is known as a local class in C++ as it is local to that function.An example of a local class is given as follows.#include using namespace std; void func() {    class LocalClass {    }; } int main() {    return 0; }In ... Read More

tanh() function in C++ STL

George John

George John

Updated on 24-Jun-2020 10:54:11

97 Views

The tanh() function returns the hyperbolic tangent of an angle given in radians. It is an inbuilt function in C++ STL.The syntax of the tanh() function is given as follows.tanh(var)As can be seen from the syntax, the function tanh() accepts a parameter var of data type float, double or long ... Read More

C++ Program to Perform Preorder Non-Recursive Traversal of a Given Binary Tree

George John

George John

Updated on 24-Jun-2020 10:52:03

966 Views

Tree traversal is a form of graph traversal. It involves checking or printing each node in the tree exactly once. The preorder traversal of a binary search tree involves visiting each of the nodes in the tree in the order (Root, Left, Right).An example of Preorder traversal of a binary ... Read More

strpbrk() in C++

George John

George John

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

231 Views

This is a string function in C++ that takes in two strings and finds the first occurrence of any character of string2 in string1. It returns the pointer to the character in string1 if there is any, otherwise returns NULL. This is not applicable for terminating NULL characters.The syntax of ... Read More

C++ Program to Check if it is a Sparse Matrix

George John

George John

Updated on 24-Jun-2020 09:57:21

543 Views

A sparse matrix is a matrix in which majority of the elements are 0. In other words, if more than half of the elements in the matrix are 0, it is known as a sparse matrix. For example −The matrix given below contains 5 zeroes. Since the number of zeroes ... Read More

C++ Program to Check if a Matrix is Invertible

George John

George John

Updated on 24-Jun-2020 09:53:26

247 Views

The determinant of a matrix can be used to find if it is invertible or not. The matrix is invertible if the determinant is non-zero. So if the determinant comes out to be zero, the matrix is not invertible. For example −The given matrix is: 4 2 1 2 ... 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                          

Advertisements