Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
CSS3 Multi-Column rule-style Property
The CSS column-rule-style property is used to specify the style of the rule (line) that appears between columns in a multi-column layout. This property helps create visual separation between columns. Syntax selector { column-rule-style: value; } Possible Values ValueDescription noneNo rule (default) solidA solid line dashedA dashed line dottedA dotted line doubleA double line grooveA 3D grooved line ridgeA 3D ridged line insetA 3D inset line outsetA 3D outset line Example The following example demonstrates the column-rule-style property with a solid line between columns − ...
Read MoreCSS3 Multi-Column rule-width Property
The CSS column-rule-width property is used to specify the width of the rule (line) that appears between columns in a multi-column layout. This property works in conjunction with column-rule-style and column-rule-color to create visual separators between columns. Syntax selector { column-rule-width: value; } Possible Values ValueDescription thinA thin rule (typically 1px) mediumA medium rule (typically 3px) - default value thickA thick rule (typically 5px) lengthA specific width in px, em, rem, etc. Example: Using column-rule-width Property The following example demonstrates the column-rule-width property with a 5px ...
Read MoreMatrix Transform in another direction with CSS
The CSS matrix() transform function allows you to apply complex 2D transformations including scaling, rotating, skewing, and translating elements in different directions. By adjusting the matrix parameters, you can create various transformation effects. Syntax transform: matrix(a, b, c, d, tx, ty); Where: a and d − scaling on x and y axis b and c − skewing on x and y axis tx and ty − translation on x and y axis Example: Matrix Transform with Skew and Translation The following example demonstrates how to use matrix transform to skew and ...
Read MoreProduct of the alternate nodes of linked list
Given a linked list with n nodes, the task is to find the product of alternate nodes. The program calculates the product of nodes at positions 1, 3, 5, etc. (starting from position 1) without modifying the linked list structure. Syntax void calculateAlternateProduct(); struct node { int data; struct node *next; }; Example Input: 10 20 30 40 50 60 Output: 15000 In the above example, starting from the first node (10), alternate nodes are 10, 30, 50 and their product is 10 ...
Read MoreRotate div to -20 degrees angle with CSS
The CSS transform property with rotate() function allows you to rotate an element by a specified angle. To rotate a div to -20 degrees, you apply a negative rotation value which rotates the element clockwise. Syntax selector { transform: rotate(angle); } Example The following example demonstrates how to rotate a div to -20 degrees angle − div { width: 300px; height: 100px; ...
Read More2D transforms in CSS3
CSS 2D transforms allow you to modify the appearance of elements by translating, rotating, scaling, and skewing them in 2D space without affecting document flow. Syntax selector { transform: function(value); } Transform Functions FunctionDescription translate(x, y)Moves element along x and y axes translateX(n)Moves element along x-axis only translateY(n)Moves element along y-axis only scale(x, y)Changes element size (width and height) scaleX(n)Changes element width only scaleY(n)Changes element height only rotate(angle)Rotates element by specified angle skewX(angle)Skews element along x-axis skewY(angle)Skews element along y-axis matrix(a, b, c, d, e, f)Combines all transforms using ...
Read MoreC Program to find IP Address, Subnet Mask & Default Gateway
C programming language can be used to find the details of the Internet connection of the system. Now, let's learn about the basic terms that we need in this problem. IP Address − IP Address stands for Internet Protocol address. An IP address is a fixed numerical identification number that is associated with each device. IP address allows communication of your device using IP address over the internet. Subnet Mask − A 32-bit component of the IP address. The subnet mask differentiates the network component of IP address into two parts. One being network address and other being ...
Read MoreC Program to find direction of growth of stack
A stack is a data structure that stores elements in memory. The stack can grow in two directions: upward (toward higher memory addresses) or downward (toward lower memory addresses). This direction depends on the system architecture and compiler implementation. When functions are called, local variables are allocated on the stack. By comparing the memory addresses of local variables in different function calls, we can determine the stack's growth direction. Syntax void function_name(int *address_pointer); // Compare addresses using pointer arithmetic if (address1 < address2) { /* stack direction logic */ } Algorithm Step ...
Read MoreBreak the line and wrap onto next line with CSS
The CSS word-wrap property allows you to break long words and wrap them onto the next line when they exceed their container's width. This is particularly useful for preventing text overflow in fixed-width containers. Syntax selector { word-wrap: value; } Possible Values ValueDescription normalDefault. Break words only at normal word break points break-wordAllows unbreakable words to be broken at arbitrary points Example: Breaking Long Words The following example demonstrates how to break long words that exceed the container width − ...
Read MoreC program to compare two files and report mismatches
In C programming, we can access files and read their content to perform various operations. Comparing two files character by character helps identify differences between similar documents. This program compares two text files and reports any mismatches found, including the line number and position where the first difference occurs. Syntax FILE *fopen(const char *filename, const char *mode); int getc(FILE *stream); int fclose(FILE *stream); Algorithm Step 1: Open both files with read mode Step 2: Read characters one by one from both files simultaneously Step 3: Compare characters and track line numbers and ...
Read More