Front End Scripts Articles

Page 41 of 47

Change the style of the right border with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 180 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 79 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 108 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 92 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 138 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 152 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 74 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 166 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

Set border width with CSS

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

The border-width property allows you to set the width of element borders. The value of this property could be either a length in px, pt or cm or it should be set to thin, medium or thick. Syntax border-width: value; /* Individual sides */ border-top-width: value; border-right-width: value; border-bottom-width: value; border-left-width: value; /* Shorthand for all sides */ border-width: top right bottom left; Values The border-width property accepts the following values: Length units: px, pt, em, rem, cm, mm Keywords: thin, medium, thick Global values: initial, inherit, unset ...

Read More

Set the right margin of an element with CSS

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

The margin-right property in CSS is used to set the right margin of an element. It creates space on the right side of an element, pushing it away from adjacent elements or the container's edge. Syntax margin-right: value; Values The margin-right property accepts several types of values: Length units: px, em, rem, pt, cm, etc. Percentage: Relative to the width of the containing element auto: Browser calculates the margin automatically inherit: Inherits from parent element Example with Different Values ...

Read More
Showing 401–410 of 465 articles
« Prev 1 39 40 41 42 43 47 Next »
Advertisements