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
Determine how overflowed content that is not displayed is signaled to users with CSS
The text-overflow property is used to determine how overflowed content that is not displayed is signaled to users with CSS. It controls the visual indication when text content exceeds its container's boundaries. Syntax selector { text-overflow: value; } Possible Values ValueDescription clipText is clipped and no indication is shown (default) ellipsisText is clipped and an ellipsis (...) is displayed stringCustom string to represent clipped text (limited browser support) Example The following example demonstrates both clip and ellipsis values for the text-overflow property − ...
Read MoreC program that does not suspend when Ctrl+Z is pressed
In C programming, when a program malfunctions or runs indefinitely, programmers can explicitly stop execution using keyboard shortcuts. Understanding how to handle or override these signals is crucial for creating robust applications. There are two primary keyboard shortcuts used to control program execution − Ctrl+C − Sends a SIGINT signal to terminate the program immediately. This signal can be handled using the signal() function in C. Ctrl+Z − Sends a SIGTSTP signal to suspend the program execution. This signal is more powerful and can also be intercepted and handled. Here, we will create a C ...
Read MoreAlign the last line of the text with CSS
The text-align-last property in CSS is used to align the last line of a text block. This property is particularly useful when you want the final line of a paragraph to have different alignment than the rest of the text. Syntax selector { text-align-last: value; } Possible Values ValueDescription leftAligns the last line to the left rightAligns the last line to the right centerCenters the last line justifyJustifies the last line autoDefault value, follows text-align property Example: Aligning Last Line to Right The following example demonstrates ...
Read MoreCSS text-emphasis property
The CSS text-emphasis property is used to apply emphasis marks to text elements. It allows you to add decorative marks above or below text while also controlling their color and style. Syntax selector { text-emphasis: text-emphasis-style text-emphasis-color; } Property Values PropertyDescription text-emphasis-styleDefines the type of emphasis marks (filled, open, dot, circle, etc.) text-emphasis-colorSets the foreground color of the emphasis marks Example: Basic Text Emphasis The following example demonstrates how to apply emphasis marks to text − ...
Read MoreC Program for Reversal algorithm for array rotation
An algorithm is a set of instructions that are performed in order to solve the given problem. Here, we will discuss the reversal algorithm for array rotation and create a program for a reversal algorithm. Now, let's get to some terms that we need to know to solve this problem − Array − A container of elements of the same data type. The size (number of elements) of the array is fixed at the time of the declaration of the array. Array rotation − Rotating an array is changing the order of the elements of the array. ...
Read MoreAdd shadow effects to text with CSS
The text-shadow property in CSS is used to add shadow effects to text, creating depth and visual appeal. This property helps make text stand out and gives it a three-dimensional appearance on web pages. Syntax text-shadow: h-shadow v-shadow blur-radius color; Property Values ValueDescription h-shadowHorizontal offset of the shadow (required) v-shadowVertical offset of the shadow (required) blur-radiusBlur distance (optional, default is 0) colorShadow color (optional, uses text color if not specified) Example 1: Basic Text Shadow The following example shows a simple shadow with horizontal and vertical offset − ...
Read MoreFind the area of a circle in C programming.
A circle is a closed figure where all points are equidistant from a central point called the center. The distance from the center to any point on the circle is called the radius. To find the area of a circle in C programming, we use the mathematical formula and implement it with proper input handling. Syntax area = π * radius * radius Where π (pi) ≈ 3.14159 and radius is the distance from center to the edge of the circle. Method 1: Using Fixed Radius Value This example calculates the area using ...
Read MoreCSS Text Shadow
The CSS text-shadow property adds shadow effects to text. You can create simple shadows, colored shadows, blurred shadows, and even multiple shadows for creative text effects. Syntax selector { text-shadow: h-offset v-offset blur-radius color; } Possible Values ValueDescription h-offsetHorizontal offset of the shadow (required) v-offsetVertical offset of the shadow (required) blur-radiusBlur radius of the shadow (optional) colorColor of the shadow (optional, defaults to current text color) Example: Various Text Shadow Effects The following example demonstrates different text shadow variations − ...
Read MoreC Program for Number of stopping station problem
The number of stopping stations problem calculates the ways a train can stop at r stations out of n total stations such that no two stopping stations are consecutive. This is a classic combinatorial problem solved using the formula for selecting non-adjacent elements. Syntax C(n-r+1, r) = (n-r+1)! / (r! * (n-2*r+1)!) Problem Explanation When a train travels from point X to Y with n intermediate stations, we need to find the number of ways to select r stopping stations such that no two selected stations are adjacent. This constraint transforms the problem into ...
Read MoreTypes of Gradients in CSS
CSS gradients create smooth transitions between two or more specified colors. They are essential for modern web design, allowing you to create beautiful color transitions without using images. Syntax /* Linear Gradient */ background: linear-gradient(direction, color1, color2, ...); /* Radial Gradient */ background: radial-gradient(shape size at position, color1, color2, ...); Types of Gradients CSS provides two main types of gradients − Linear Gradients − Transitions along a straight line (down/up/left/right/diagonally) Radial Gradients − Transitions radiating from a center point in a circular or elliptical pattern Linear Gradient Example ...
Read More