Web Development Articles

Page 394 of 801

Usage of CSS border-collapse property

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

The border-collapse CSS property controls how adjacent table cell borders are displayed. It determines whether borders should merge together or remain separate. Syntax border-collapse: collapse | separate | initial | inherit; Values Value Description collapse Adjacent borders are merged into a single border separate Each cell maintains its own borders (default) initial Sets to default value (separate) inherit Inherits from parent element Example Here's a comparison showing both collapse and separate values: ...

Read More

Usage of CSS caption-side property

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

The caption-side property controls the position of a table's element relative to the table content. This CSS property allows you to place captions on any side of the table for better visual organization. Syntax caption-side: top | bottom | left | right | initial | inherit; Property Values Value Description top Caption appears above the table ...

Read More

Usage of CSS empty-cells property

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

The empty-cells property specifies whether borders and backgrounds should be displayed for empty table cells. This property only works when border-collapse is set to separate. Syntax empty-cells: show | hide | inherit; Values show - Default value. Borders and backgrounds are displayed for empty cells hide - Borders and backgrounds are hidden for empty cells inherit - Inherits the value from the parent element Example: Hiding Empty Cells table.empty { ...

Read More

Usage of CSS border-spacing property

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

The border-spacing CSS property controls the distance between adjacent table cell borders. It only applies to tables with border-collapse: separate and accepts one or two length values. Syntax border-spacing: horizontal vertical; border-spacing: value; /* applies to both directions */ Parameters One value: Sets equal spacing horizontally and vertically Two values: First value sets horizontal spacing, second sets vertical spacing Units: Any CSS length unit (px, em, rem, etc.) Example: Different Spacing Values table { ...

Read More

Usage of CSS table-layout property

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

The table-layout property controls how a browser calculates column widths in HTML tables. This property significantly affects rendering performance and layout behavior, especially with large tables or variable content. Syntax table-layout: auto | fixed | inherit; Property Values Value Description Performance auto Browser calculates widths based on cell content (default) Slower - requires content analysis fixed Uses first row to determine column widths Faster - renders immediately inherit Inherits value from parent element Depends on inherited value Example: Comparing auto vs fixed ...

Read More

Change the style of top border with CSS

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

The border-top-style property in CSS defines the line style of an element's top border. It accepts various values like solid, dashed, dotted, double, and more. Syntax border-top-style: value; Common Values Value Description solid Single solid line dashed Dashed line dotted Dotted line double Two solid lines groove 3D grooved effect ridge 3D ridged effect none No border Example Here's how to apply different top border styles: ...

Read More

Change the style of left border with CSS

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

The border-left-style property in CSS allows you to change the style of an element's left border. This property accepts various values like solid, dashed, dotted, double, and more to create different visual effects. Syntax border-left-style: value; Available Border Styles The border-left-style property accepts several values: solid - A single solid line dashed - A series of dashes dotted - A series of dots double - Two parallel lines groove - A 3D grooved border ridge - A 3D ridged border inset - A 3D inset border outset - A 3D outset border ...

Read More

Usage of border-top-color property in CSS

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

The border-top-color property in CSS is used to set the color of an element's top border. It only affects the color, not the width or style of the border. Syntax border-top-color: color | transparent | initial | inherit; Parameters Value Description color Any valid CSS color value (hex, rgb, color name, etc.) transparent Makes the top border transparent initial Sets to default value inherit Inherits from parent element Example: Basic Usage Here's how to use the border-top-color property with different ...

Read More

Set dashed line for border with CSS

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

To set the dashed line for the border, use the border-style property with the value dashed. This creates evenly-spaced dashes around the element's border. Syntax border-style: dashed; /* or combine with width and color */ border: width style color; Example This is a dashed border. Different Dashed Border Styles ...

Read More

Change the style of the right border with CSS

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

The border-right-style property in CSS controls the appearance and style of an element's right border. It accepts various values like solid, dashed, dotted, double, and more to create different visual effects. Syntax border-right-style: value; Common Values Value Description solid Single solid line dashed Dashed line pattern dotted Dotted line pattern double Two parallel solid lines none No border (default) Example: Different Right Border Styles .solid-border { border-right-width: 3px; ...

Read More
Showing 3931–3940 of 8,010 articles
« Prev 1 392 393 394 395 396 801 Next »
Advertisements