Create a transition effect on hover pagination with CSS

Anvi Jain
Updated on 15-Mar-2026 12:59:26

621 Views

To create a transition effect on hover pagination, use the CSS transition property. This property allows you to smoothly animate changes in CSS properties when a user hovers over pagination links, creating a professional and interactive user experience. Syntax selector { transition: property duration timing-function delay; } Example You can try to run the following code to add transition effect − .demo { ... Read More

CSS grid-template-columns property

Nishtha Thakur
Updated on 15-Mar-2026 12:59:13

191 Views

The CSS grid-template-columns property is used to define the number and size of columns in a CSS Grid layout. This property allows you to specify how much space each column should take up and how the grid items should be distributed across the columns. Syntax selector { grid-template-columns: value1 value2 ... valueN; } Possible Values ValueDescription autoColumn size adjusts based on content lengthFixed size using px, em, rem, etc. %Percentage of container width frFraction of available space repeat()Repeats a pattern of column sizes Example 1: Auto-Sized Columns ... Read More

Program for sum of geometric series in C

Sunidhi Bansal
Updated on 15-Mar-2026 12:59:12

6K+ Views

In C programming, calculating the sum of a geometric series involves finding the total of terms where each term is obtained by multiplying the previous term by a constant ratio. A geometric series follows the pattern: a, ar, ar2, ar3, ..., where 'a' is the first term, 'r' is the common ratio, and 'n' is the number of terms. Syntax float sumGeometric(float a, float r, int n); Parameters a − First term of the geometric series r − Common ratio between successive terms n − Number of terms in the series ... Read More

Set style for pagination with CSS

George John
Updated on 15-Mar-2026 12:58:56

155 Views

CSS pagination styling helps create user-friendly navigation for websites with multiple pages. You can style pagination links to provide clear visual feedback and improve user experience. Basic Syntax .pagination { display: inline-block; } .pagination a { float: left; padding: value; text-decoration: none; color: value; } Example: Basic Pagination Styling The following example demonstrates how to create styled pagination links − .pagination { ... Read More

Program for triangular patterns of alphabets in C

Sunidhi Bansal
Updated on 15-Mar-2026 12:58:53

426 Views

In C programming, triangular patterns of alphabets are commonly used to demonstrate nested loops and character manipulation. This pattern starts with a full line of consecutive alphabets and removes one character from the beginning in each subsequent line. Syntax for (i = 1; i

Profit and loss Problems using C

Sunidhi Bansal
Updated on 15-Mar-2026 12:58:39

3K+ Views

In C programming, profit and loss problems involve calculating the financial gain or loss from a transaction based on the cost price and selling price. Given a cost price (cp) and selling price (sp), we need to determine whether a profit was earned, a loss was suffered, or there was no profit nor loss. Syntax // Basic profit and loss calculation if (selling_price > cost_price) { profit = selling_price - cost_price; } else if (cost_price > selling_price) { loss = cost_price - selling_price; } else { ... Read More

Usage of CSS align-items property flex-start value

Nitya Raut
Updated on 15-Mar-2026 12:58:37

233 Views

The CSS align-items property with the flex-start value aligns flex items to the start of the cross axis, which is typically the top of the container in a horizontal flex layout. Syntax .container { display: flex; align-items: flex-start; } Example You can try to run the following code to implement the flex-start value − .mycontainer { display: flex; height: 300px; ... Read More

Role of CSS justify-content property flex-end value

Nancy Den
Updated on 15-Mar-2026 12:58:28

220 Views

The CSS justify-content property with the flex-end value is used to align flex items at the end of the flex container's main axis. This moves all flex items to the right side of the container (in a row direction) or to the bottom (in a column direction). Syntax .container { display: flex; justify-content: flex-end; } Example You can try to run the following code to implement the flex-end value − ... Read More

Product of given N fractions in reduced form in C

Sunidhi Bansal
Updated on 15-Mar-2026 12:58:24

303 Views

Given the numerator and denominator of N fractions, the task is to find the product of all N fractions and output the result in reduced form. The product of fractions is calculated by multiplying all numerators together and all denominators together, then reducing the resulting fraction to its simplest form. For example, if we have fractions 4/5 and 3/4, their product would be (4×3)/(5×4) = 12/20, which reduces to 3/5. Fraction Multiplication: 4/5 × 3/4 = (4×3)/(5×4) = 12/20 = 3/5 4 5 ... Read More

Role of CSS justify-content property flex-start value

George John
Updated on 15-Mar-2026 12:58:17

286 Views

The CSS justify-content property with the flex-start value aligns flex items at the beginning of the main axis (typically the left side in a row layout). This is the default alignment for flexbox containers. Syntax .container { display: flex; justify-content: flex-start; } Example You can try to run the following code to implement the flex-start value − .mycontainer { ... Read More

Advertisements