Articles on Trending Technologies

Technical articles with clear explanations and examples

CSS Grid Elements

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 456 Views

CSS Grid Elements consist of a grid container (parent element) and grid items (child elements). The grid container is defined using display: grid, while all direct children automatically become grid items arranged within the grid layout. Syntax .grid-container { display: grid; /* Grid properties */ } .grid-item { /* Item styling */ } Grid Structure A CSS Grid consists of − Grid Container: The parent element with display: grid Grid Items: Direct children of the grid container ...

Read More

CSS Grid Layout

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 857 Views

CSS Grid Layout is a two-dimensional layout system that allows you to arrange content in rows and columns. It provides a powerful way to create complex layouts with explicit control over positioning and sizing of elements. Grid Layout is perfect for creating responsive designs and offers more control than traditional layout methods. Syntax .container { display: grid; } Basic Grid Layout The following example demonstrates how to create a basic grid layout with two columns − .grid-container { ...

Read More

Why files are needed in C programming language?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 4K+ Views

Files are collections of records or storage locations on hard disk where data is stored permanently. In C programming, files allow programs to store and retrieve data that persists beyond program execution. We can access files using various C library functions for different operations. Need of Files in C Programming Files are essential in C programming for the following reasons − Data Persistence: Entire data is lost when the program terminates. Storing data in files preserves your information even after the program ends. Time Efficiency: If you need to enter large amounts of data, it normally ...

Read More

Use CSS max-width property responsive for video player

Nishtha Thakur
Nishtha Thakur
Updated on 15-Mar-2026 712 Views

The CSS max-width property can be used to make video players responsive by preventing them from exceeding their container's width while maintaining their aspect ratio. This ensures videos adapt smoothly to different screen sizes. Syntax video { max-width: value; height: auto; } Example The following example demonstrates how to create a responsive video player using the max-width property − .video-container { ...

Read More

Write a structure in local scope program using C language

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 575 Views

A structure in C is a collection of different datatype variables, grouped together under a single name. When a structure is declared inside a function or block, it has local scope and can only be accessed within that specific function or block. Syntax struct structure_name { datatype member1; datatype member2; datatype member_n; }; Local Scope Structure Declaration When a structure is declared inside a function, it is local to that function and cannot be accessed from outside − void function() ...

Read More

Role of CSS flex-direction property row-reverse value

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

The CSS flex-direction property with the row-reverse value arranges flex items horizontally from right to left. This is the opposite of the default row behavior, which flows from left to right. Syntax selector { display: flex; flex-direction: row-reverse; } Example The following example demonstrates how flex-direction: row-reverse reverses the horizontal order of flex items − .mycontainer { display: flex; flex-direction: ...

Read More

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

Smita Kapse
Smita Kapse
Updated on 15-Mar-2026 1K+ Views

To position text to the top left position on an image, use the position property with absolute positioning along with the top and left properties. The parent container must have position: relative to serve as the positioning reference. Syntax .container { position: relative; } .text-overlay { position: absolute; top: value; left: value; } Example The following example demonstrates how to position text at the top left corner of an image − ...

Read More

Explain the concept of Uninitialized array accessing in C language

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 1K+ Views

In C programming, accessing an uninitialized array can lead to unpredictable behavior since the array elements contain garbage values from memory. Understanding this concept is crucial for writing reliable C programs. Syntax int array[size]; // Uninitialized array int array[size] = {0}; // Initialized with zeros int array[size] = {1, 2, 3}; // Partially initialized Key Behavior Uninitialized arrays contain garbage values from memory locations The compiler does not generate compilation or runtime errors for accessing uninitialized arrays Values are ...

Read More

Use CSS width property for a responsive video player

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 340 Views

The CSS width property can be used to create responsive video players that automatically adjust their size based on the container or viewport width. By setting width: 100% and height: auto, the video maintains its aspect ratio while scaling fluidly. Syntax video { width: 100%; height: auto; } Example: Basic Responsive Video Player The following example creates a responsive video player that scales with the browser window − ...

Read More

What is out of bounds index in an array - C language?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 3K+ Views

In C programming, an out of bounds index occurs when you try to access an array element using an index that is beyond the valid range of the array. For an array of size n, valid indices range from 0 to n-1. Syntax datatype array[size]; // Valid indices: 0 to (size-1) // Out of bounds: any index < 0 or >= size Understanding Array Bounds If you declare an array with 4 elements, the valid indices are 0, 1, 2, and 3. Accessing index 4 or any higher value results in undefined behavior. The ...

Read More
Showing 20871–20880 of 61,299 articles
Advertisements