Specify the Gap Between Columns with CSS

Nishtha Thakur
Updated on 24-Jun-2020 11:50:27

168 Views

Use the column-gap property to set the gap between the columns. You can try to run the following code to implement the column-gap property, with value 50px:ExampleLive Demo                    .demo {             column-count: 4;             column-gap: 50px;          }                              This is demo text. This is demo text. This is demo text. This is demo text.          This is ... Read More

Execute Script When File is Ready to Start Playing in HTML

Sreemaha
Updated on 24-Jun-2020 11:49:44

241 Views

You can use the oncanplay attribute for the following attributes − , , and .Example                                        Your browser does not support the video element.                      alert("I am ready to begin.");          

Specify Audio/Video Loading in HTML

Prabhas
Updated on 24-Jun-2020 11:48:24

130 Views

You can try to run the following code to learn how to implement a preload attribute to allow the author to give a hint to the browser for the best user experience. Works for both and tags −Example                                        Your browser does not support the video element.          

Fill Columns with CSS

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;             column-fill: balance;          }                              This is demo text. This is demo text. This is demo text.          This is demo text. This is demo text. This is ... Read More

acos Function in C++ STL

Chandu yadav
Updated on 24-Jun-2020 11:43:36

1K+ Views

The acos() function returns the inverse cosine of an angle given in radians. It is an inbuilt function in C++ STL.The syntax of the acos() function is given as follows.acos(var)As can be seen from the syntax, the function acos() accepts a parameter var of data type float, double or long double. The value of this parameter should be between -1 and 1. It returns the inverse cosine of var in the range of -pi to pi.A program that demonstrates acos() in C++ is given as follows.Example Live Demo#include #include using namespace std; int main() {    double d = ... Read More

atan2 Function in C++ STL

Arjun Thakur
Updated on 24-Jun-2020 11:42:59

373 Views

The atan2() function returns the tangent inverse of the coordinate in terms of y and x. Here y and x are the values of the y and x coordinates respectively. It is an inbuilt function in C++ STL.The syntax of the atan2() function is given as follows.atan2(dataType var1, dataType var2)As can be seen from the syntax, the function atan2() accepts two parameters var1 and var2 of data type float, double or long double that are y and x point respectively.The value returned by atan2() is in the range of -pi to pi and is the angle between the (x, y) ... Read More

Specify Audio/Video Restart in HTML

V Jyothi
Updated on 24-Jun-2020 11:42:44

357 Views

Use the loop attribute to specify that the audio/ video will start over again. You can try to run the following code to implement loop attribute −Example                                        Your browser does not support the video element.          

Constructors in C++

Arjun Thakur
Updated on 24-Jun-2020 11:39:55

10K+ Views

Constructors are functions of a class that are executed when new objects of the class are created. The constructors have the same name as the class and no return type, not even void. They are primarily useful for providing initial values for variables of the class.The two main types of constructors are default constructors and parameterized constructors. Details about these are given as follows.Default ConstructorsDefault constructors do not take any parameters. If a default constructor is not provided by the programmer explicitly, then the compiler provides a implicit default constructor. In that case, the default values of the variables are ... Read More

Center Pagination on a Web Page with CSS

Daniol Thomas
Updated on 24-Jun-2020 11:39:33

812 Views

You can try to run the following code to center pagination on a web page:ExampleLive Demo                    .demo {             display: inline-block;          }          .demo1 {             text-align: center;          }          .demo a {             color: red;             padding: 5px 12px;             text-decoration: none;             transition: background-color 2s;             border: 1px solid orange;             font-size: 18px;          }          .demo a.active {             background-color: orange;             color: white;             border-radius: 5px;          }          .demo a:hover:not(.active) {             background-color: yellow;          }          .demo a:first-child {             border-top-left-radius: 10px;             border-bottom-left-radius: 10px;          }          .demo a:last-child {             border-top-right-radius: 10px;             border-bottom-right-radius: 10px;          }                     Our Quizzes                                                

Specify Number of Columns for an Element in CSS

Chandu yadav
Updated on 24-Jun-2020 11:38:36

264 Views

To specify the number of columns an element should be divided into, use the column-count property.You can try to run the following code to implement the column-count property with 4 columnsExampleLive Demo                    .demo {             column-count: 4;          }                              This is demo text. This is demo text. This is demo text.          This is demo text. This is demo text. This is ... Read More

Advertisements