CSS Articles

Page 90 of 130

Set the color of the rule between columns with CSS

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

The CSS column-rule-color property sets the color of the rule (line) that appears between columns in a multi-column layout. This property is used in conjunction with column-rule-style to create visible separators between columns. Syntax selector { column-rule-color: color; } Possible Values ValueDescription colorAny valid CSS color value (hex, rgb, rgba, named colors, etc.) initialSets the property to its default value inheritInherits the color from the parent element Example: Orange Dashed Column Rule The following example creates a 4-column layout with orange dashed rules between columns − ...

Read More

Shorthand property for setting all the column-rule-* properties

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 156 Views

The CSS column-rule property is a shorthand property for setting all the column rule properties in one declaration. It allows you to define the width, style, and color of the line that appears between columns in a multi-column layout. Syntax selector { column-rule: width style color; } Possible Values PropertyValuesDescription column-rule-widththin, medium, thick, lengthSets the width of the column rule column-rule-stylenone, solid, dashed, dotted, double, etc.Sets the style of the column rule column-rule-colorcolor name, hex, rgb, rgbaSets the color of the column rule Example The following ...

Read More

How to fill columns with CSS

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

The CSS column-fill property controls how content is distributed across multiple columns when using CSS multi-column layout. This property determines whether columns should be balanced in height or filled sequentially. Syntax selector { column-fill: value; } Possible Values ValueDescription balanceContent is distributed evenly across all columns (default) autoColumns are filled sequentially, one after another balance-allBalance content across all columns including the last fragment Example: Balanced Column Fill The following example demonstrates the balance value, which distributes content evenly across columns − ...

Read More

How to specify the number of columns an element should be divided into with CSS

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

The CSS column-count property is used to specify the number of columns an element should be divided into. This property enables you to create newspaper-style multi-column layouts for text content. Syntax selector { column-count: value; } Possible Values ValueDescription autoDefault value. Number of columns determined by other properties numberPositive integer specifying the number of columns Example: Creating 4 Columns The following example demonstrates how to divide text content into 4 columns − .demo { ...

Read More

Center pagination on a web page with CSS

Daniol Thomas
Daniol Thomas
Updated on 15-Mar-2026 868 Views

Centering pagination on a web page involves creating a horizontal pagination bar and aligning it to the center of its container. This is commonly achieved using the text-align: center property on the parent container and display: inline-block on the pagination element. Syntax .pagination-container { text-align: center; } .pagination { display: inline-block; } Example The following example demonstrates how to create a centered pagination bar with styled navigation links − ...

Read More

CSS Grid Gaps

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

The CSS Grid layout allows you to create gaps between rows and columns in a grid container. These gaps provide spacing between grid items, making your layout more visually appealing and easier to read. Column Gap Row Gap ...

Read More

CSS Grid Rows

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

CSS Grid rows refer to the horizontal tracks in a CSS grid container. They define the horizontal space where grid items are placed and can be explicitly defined using the grid-template-rows property. Row ...

Read More

Change the size of the pagination with CSS

Krantik Chavan
Krantik Chavan
Updated on 15-Mar-2026 431 Views

To change the pagination size in CSS, you can use the font-size property to make pagination elements larger or smaller. This affects both the text size and the overall visual impact of your pagination buttons. Syntax .pagination a { font-size: value; } Example: Large Pagination Buttons The following example creates pagination with increased size using font-size: 18px − .demo { display: inline-block; } .demo ...

Read More

Add space between pagination links with CSS

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

Pagination links often appear too close together by default. Adding space between pagination links improves readability and provides better visual separation. This can be achieved using CSS properties like margin, padding, or gap. Syntax /* Method 1: Using margin */ .pagination a { margin: value; } /* Method 2: Using gap (for flex/grid containers) */ .pagination { display: flex; gap: value; } Method 1: Using Margin The following example adds space between pagination links using the margin property − ...

Read More

Usage of CSS grid-column-gap property

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

The CSS grid-column-gap property is used to set the gap between columns in a CSS Grid layout. This property allows you to create space between grid columns without affecting the padding or margins of individual grid items. Syntax selector { grid-column-gap: value; } Possible Values ValueDescription lengthDefines the gap in px, em, rem, etc. %Defines the gap as a percentage of the container width normalDefault value, typically 0 Example The following example demonstrates how to create a 20px gap between grid columns − ...

Read More
Showing 891–900 of 1,299 articles
« Prev 1 88 89 90 91 92 130 Next »
Advertisements