Javascript Articles

Page 392 of 534

Usage of border-top-color property in CSS

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 80 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 779 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 179 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

Usage of border-left-color property in CSS

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

The border-left-color property in CSS is used to set the color of an element's left border. This property only works when a left border is already defined using the border-left-style or border property. Syntax border-left-color: color | transparent | initial | inherit; Parameters Value Description color Sets the left border color (hex, rgb, color name) transparent Makes the left border transparent initial Sets to default value inherit Inherits from parent element Example ...

Read More

Set the style of the border with CSS

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

To set the style of border, use the border-style property. The border-style property allows you to select one of the following styles of the border: none: No border solid: Border is a single solid line. dotted: Border is a series of dots. dashed: Border is a series of short lines. double: Border is two solid lines. groove: Border looks as though it is carved into the page. ridge: Border looks the opposite of groove. ...

Read More

Usage of border-style property in CSS

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

The border-style property in CSS defines the style of an element's border. It controls how the border appears visually, such as solid, dashed, dotted, or hidden. Syntax border-style: value; Common Border Style Values Value Description none No border (default) solid Solid single line dashed Dashed line dotted Dotted line double Double solid lines groove 3D grooved effect ridge 3D ridged effect inset 3D inset effect outset 3D outset effect Basic Example ...

Read More

Set the width of an image with CSS

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

The CSS width property is used to set the width of an image. This property can have values in pixels, percentages, or other CSS length units. When using percentage values, the width is calculated relative to the containing element. Syntax img { width: value; } Common Width Values The width property accepts several types of values: Pixels (px) - Fixed width in pixels Percentage (%) - Width relative to parent container Auto - Browser calculates width automatically Viewport units (vw) - Width relative to viewport Example: ...

Read More

Usage of border-right-style property in CSS

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

The border-right-style property in CSS sets the line style of an element's right border. It determines how the right border appears, whether solid, dashed, dotted, or other styles. Syntax border-right-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset; Property Values Value Description none No border (default) solid Single solid line dashed Series of dashes dotted Series of dots double Two solid lines groove 3D grooved appearance ridge ...

Read More

Usage of border-bottom-width property in CSS

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

The border-bottom-width property sets the thickness of an element's bottom border. It only takes effect when border-style is defined, as borders need a style to be visible. Syntax border-bottom-width: value; Values The property accepts the following values: thin - A thin border (typically 1px) medium - A medium border (typically 3px) thick - A thick border (typically 5px) length - Custom width in px, em, rem, etc. inherit - Inherits from parent element Example with Different Widths ...

Read More

Set the color of the border with CSS

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

The border-color property in CSS specifies the color of an element's border. It works in conjunction with other border properties like border-style and border-width to create complete border styling. Syntax border-color: color-value; The color value can be specified using: Hex codes: #800000 RGB values: rgb(128, 0, 0) Color names: red, blue, green HSL values: hsl(0, 100%, 25%) Example: Basic Border Color ...

Read More
Showing 3911–3920 of 5,340 articles
« Prev 1 390 391 392 393 394 534 Next »
Advertisements