Articles on Trending Technologies

Technical articles with clear explanations and examples

How to preserve the readability when font fallback occurs with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 180 Views

The CSS font-size-adjust property helps preserve text readability when font fallback occurs. When the preferred font is unavailable and the browser falls back to another font, this property maintains consistent visual sizing by adjusting the font size based on the aspect ratio. Syntax selector { font-size-adjust: value; } Possible Values ValueDescription noneDefault. No adjustment applied numberAspect ratio value (typically 0.4 to 0.7) Example: Font Size Adjustment The following example demonstrates how font-size-adjust maintains consistent visual sizing when fonts change − ...

Read More

Discretionary Trust

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 444 Views

A discretionary trust is a legal arrangement where a trustee holds and manages assets on behalf of beneficiaries, with full discretion over when, how much, and to whom distributions are made. Unlike fixed trusts where beneficiaries have predetermined entitlements, discretionary trusts provide flexibility as trustees can adapt distributions based on changing circumstances and individual needs. Key Concepts of Discretionary Trust In a discretionary trust, the trustee acts as the decision-maker with fiduciary responsibility to act in the beneficiaries' best interests. The trust deed establishes the framework, including the identity of potential beneficiaries and distribution guidelines, but the trustee ...

Read More

Perform Animation on CSS border-bottom-color property

Samual Sam
Samual Sam
Updated on 15-Mar-2026 161 Views

The CSS border-bottom-color property can be animated to create smooth color transitions for the bottom border of an element. This property is animatable, allowing you to create engaging visual effects. Syntax selector { border-bottom-color: color; animation: animation-name duration timing-function; } @keyframes animation-name { from { border-bottom-color: initial-color; } to { border-bottom-color: final-color; } } Example: Animating Border Bottom Color The following example demonstrates how to animate the border-bottom-color property from blue to red over a 2-second duration ...

Read More

C program to sort an array of ten elements in an ascending order

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

An array is a group of related data items that are stored with a single name. In this article, we'll learn how to sort an array of ten elements in ascending order using the bubble sort technique. For example, int student[30]; Here, student is an array name which holds 30 collection of data items with a single variable name. Syntax for(i = 0; i < n-1; i++) { for(j = i+1; j < n; j++) { if(arr[i] > arr[j]) { ...

Read More

Usage of radial-gradient() CSS function

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

The CSS radial-gradient() function creates a smooth transition between colors radiating from a center point. Unlike linear gradients that flow in a straight line, radial gradients expand outward in a circular or elliptical pattern. Syntax background: radial-gradient([shape] [size] [at position], color-stop1, color-stop2, ...); Possible Values ParameterDescription shapeOptional. circle or ellipse (default) sizeOptional. closest-side, farthest-side, closest-corner, farthest-corner positionOptional. Center position like center, top left, or 50% 30% color-stopTwo or more colors with optional stop positions Example: Basic Radial Gradient The following example creates a radial gradient background with three colors − ...

Read More

Explain monolithic and modular programming in C language

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

Monolithic and modular programming are two different approaches to writing C programs. The main difference lies in how the code is organized and structured. Monolithic Programming In monolithic programming, the entire program logic is written in a single function, typically the main() function. All the code is placed in one location without breaking it into smaller, manageable parts. Example: Monolithic Approach Here's an example of a monolithic program that performs arithmetic operations − #include int main() { int a = 10, b = 5; ...

Read More

Contribution Plan

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 412 Views

A contribution plan is a retirement savings program where employees, employers, or both contribute regular amounts to build a fund for retirement. These contributions are invested in various financial instruments like mutual funds, bonds, or stocks to generate returns that support an individual's retirement goals. Key Concepts In contribution plans, the final retirement benefit depends on the total contributions made and the investment performance of those funds. Unlike traditional pension plans that guarantee fixed benefits, contribution plans transfer investment risk to the employee while offering greater flexibility and control over investment choices. Types of Contribution Plans ...

Read More

Animate CSS border-top property

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 287 Views

The CSS border-top property can be animated to create dynamic visual effects. You can animate the border width, color, and style using CSS animations and transitions. Syntax selector { border-top: width style color; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { from { border-top: initial-value; } to { border-top: final-value; } } Example: Animating Border Top Width and Color The following example demonstrates how to animate the border-top property by changing its width and color − ...

Read More

How to display the complete text one word per line in C language?

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

In C, displaying text one word per line involves reading words from a file and printing each word on a separate line. This can be accomplished by using file handling functions to read words and format the output appropriately. Syntax fscanf(file_pointer, "%s", word_buffer); printf("%s", word); Example: Reading Words from File The following program demonstrates how to display text one word per line by reading from a file − Note: This example uses file operations. Create a text file named "input.txt" with some text content before running the program. #include ...

Read More

Define colors using the Red-Green-Blue-Alpha model (RGBA) with CSS

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

CSS provides the RGBA color model to define colors using Red, Green, Blue values along with an Alpha channel for transparency. The rgba() function allows you to specify colors with precise opacity control, making it ideal for creating semi-transparent elements and layered designs. Syntax selector { color: rgba(red, green, blue, alpha); background-color: rgba(red, green, blue, alpha); } Possible Values ParameterRangeDescription red0-255Red color intensity green0-255Green color intensity blue0-255Blue color intensity alpha0-1Opacity level (0 = transparent, 1 = opaque) Example: RGBA Colors with Transparency ...

Read More
Showing 20801–20810 of 61,297 articles
Advertisements