Articles on Trending Technologies

Technical articles with clear explanations and examples

CSS perspective-origin property

Jennifer Nicholas
Jennifer Nicholas
Updated on 15-Mar-2026 130 Views

The CSS perspective-origin property defines the position from which the viewer is looking at 3D-positioned elements. It determines the vanishing point for the perspective effect, controlling how 3D transformations appear to the viewer. Syntax selector { perspective-origin: x-position y-position; } Possible Values ValueDescription x-positionHorizontal position: left, center, right, or percentage/length values y-positionVertical position: top, center, bottom, or percentage/length values initialSets to default value (50% 50%) inheritInherits from parent element Example: Left Origin Perspective The following example demonstrates how perspective-origin: left affects the viewing angle of a ...

Read More

Program to Print Mirrored Hollow Parallelogram in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 775 Views

A mirrored hollow parallelogram is a pattern where a hollow parallelogram shape is printed with leading spaces to create a mirrored or slanted effect. The pattern consists of stars forming the outline while the interior remains hollow. Syntax for(r = 1; r

Read More

Print the Mirror Image of Sine-Wave Pattern in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 463 Views

In C programming, creating a mirror image of a sine-wave pattern involves printing a visual representation where waves appear to be reflected. This pattern uses the mathematical concept of symmetry to create wave-like shapes using characters. Syntax for(i = 1; i

Read More

Usage of CSS perspective property

radhakrishna
radhakrishna
Updated on 15-Mar-2026 138 Views

The CSS perspective property defines the distance between the user and the z-axis of an element, creating a 3D perspective effect. It controls how 3D transformed elements appear by setting the viewing distance for the transformation. Syntax selector { perspective: value; } Possible Values ValueDescription lengthDistance in px, em, rem, etc. Lower values create more dramatic perspective noneNo perspective applied (default) Example: Comparing Different Perspective Values The following example demonstrates how different perspective values affect 3D rotated elements − ...

Read More

Specify how nested elements are rendered in 3D space

Vrundesha Joshi
Vrundesha Joshi
Updated on 15-Mar-2026 240 Views

The CSS transform-style property controls how nested child elements are rendered in 3D space. It determines whether child elements are positioned in the flat plane of their parent element or in 3D space. Syntax selector { transform-style: flat | preserve-3d; } Possible Values ValueDescription flatChild elements are flattened into the parent's plane (default) preserve-3dChild elements maintain their 3D positioning relative to the parent Example: Nested 3D Elements The following example shows how preserve-3d allows nested child elements to maintain their 3D transformations − ...

Read More

Program to Print the Squared Matrix in Z form in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 771 Views

In C programming, printing a squared matrix in Z form means displaying the elements in a specific pattern − first the top row, then the diagonal elements from top-right to bottom-left, and finally the bottom row. This creates a Z-shaped traversal pattern through the matrix. Syntax /* Z-form traversal pattern */ // First row: matrix[0][0] to matrix[0][n-1] // Diagonal: matrix[i][n-1-i] where i goes from 1 to n-2 // Last row: matrix[n-1][1] to matrix[n-1][n-1] Algorithm 1 2 3 ...

Read More

Change the position on transformed elements with CSS

varun
varun
Updated on 15-Mar-2026 335 Views

The CSS transform-origin property is used to change the position (origin point) from which transformations are applied to elements. By default, transformations like rotation, scaling, and skewing occur from the center of the element, but transform-origin allows you to specify a different reference point. Syntax selector { transform-origin: x-axis y-axis z-axis; } Possible Values ValueDescription x-axisDefines the position on the x-axis (left, center, right, %, px) y-axisDefines the position on the y-axis (top, center, bottom, %, px) z-axisDefines the position on the z-axis for 3D transformations (px) ...

Read More

Program to print Lower triangular and Upper triangular matrix of an array in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 13K+ Views

In C, triangular matrices are special square matrices where elements are zero either above or below the main diagonal. This program demonstrates how to print both lower and upper triangular matrices from a given matrix. Syntax /* Lower Triangular: matrix[i][j] = 0 when j > i */ /* Upper Triangular: matrix[i][j] = 0 when i > j */ Triangular Matrix Types Lower Triangular Matrix − A square matrix where all entries above the main diagonal are zero. Lower Triangular ...

Read More

CSS content-box Value

Rishi Rathor
Rishi Rathor
Updated on 15-Mar-2026 280 Views

The CSS background-origin property with the content-box value positions the background image to start from the upper left corner of the content area, excluding padding and borders. This gives you precise control over where your background image begins. Syntax selector { background-origin: content-box; } Possible Values ValueDescription padding-boxBackground starts from the padding edge (default) border-boxBackground starts from the border edge content-boxBackground starts from the content edge Example: Comparing Background Origin Values The following example demonstrates the difference between padding-box, border-box, and content-box values − ...

Read More

Usage of transform-origin property with CSS

George John
George John
Updated on 15-Mar-2026 151 Views

The CSS transform-origin property sets the point around which an element's transformation takes place. By default, transformations occur around the center of an element, but you can change this origin point to any position. Syntax selector { transform-origin: x-axis y-axis z-axis; } Possible Values ValueDescription x-axisHorizontal position: left, center, right, or percentage/length y-axisVertical position: top, center, bottom, or percentage/length z-axisZ-axis position for 3D transformations (length value) Example: Transform Origin with Rotation The following example demonstrates how transform-origin affects the rotation point of an element − ...

Read More
Showing 21121–21130 of 61,297 articles
Advertisements