Front End Scripts Articles

Page 42 of 47

Usage of border-top-width property in CSS

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

The border-top-width property in CSS controls the thickness of an element's top border. This property only takes effect when a border style is defined. Syntax border-top-width: value; Property Values Value Description Example thin Specifies a thin border (typically 1px) border-top-width: thin; medium Specifies a medium border (typically 3px) border-top-width: medium; thick Specifies a thick border (typically 5px) border-top-width: thick; length Defines width in px, em, rem, etc. border-top-width: 8px; Example: Basic Usage ...

Read More

CSS padding-bottom property

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

The padding-bottom CSS property specifies the bottom padding of an element. It sets the space between the element's content and its bottom border. This property accepts values in length units (px, em, rem) or percentages (%). Syntax padding-bottom: length | percentage | initial | inherit; Parameters length - Fixed value in units like px, em, rem (e.g., 10px, 1.5em) percentage - Relative to the width of the containing block (e.g., 5%) initial - Sets to default value (0) inherit - Inherits ...

Read More

CSS padding-top property

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

The padding-top CSS property specifies the top padding of an element. It creates space between the element's content and its top border. This property accepts values in pixels, percentages, em units, or other CSS length units. Syntax padding-top: value; Values The padding-top property accepts the following values: Length values: px, em, rem, cm, etc. Percentage: Relative to the width of the containing block inherit: Inherits from parent element initial: Sets to default value (0) Example with Length Values ...

Read More

Change the style of bottom border with CSS

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

The border-bottom-style property changes the style of the bottom border of an element. This CSS property allows you to define how the bottom border line appears visually. Syntax border-bottom-style: none | solid | dashed | dotted | double | groove | ridge | inset | outset; Available Border Styles The border-bottom-style property accepts the following values: solid - A single solid line dashed - A series of short dashes dotted - A series of dots double - Two solid lines groove - A 3D grooved border ridge - A 3D ridged border ...

Read More

Style the numbering characters in an ordered list with CSS

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

The list-style-type property allows you to control the appearance and style of numbering characters in ordered lists. This CSS property offers various numbering formats including decimal, roman numerals, letters, and more. Syntax list-style-type: decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none; Common list-style-type Values Value Description Example Output decimal Default numbers 1, 2, 3 lower-roman Lowercase Roman numerals i, ii, iii upper-roman Uppercase Roman numerals I, II, III lower-alpha Lowercase letters a, b, c upper-alpha Uppercase letters A, B, ...

Read More

Usage of CSS list-style-type property

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

The list-style-type CSS property allows you to control the shape or appearance of list item markers. This property works with both ordered () and unordered () lists. Syntax list-style-type: value; Common Values for Unordered Lists Here are the most commonly used values for unordered list markers: .circle-list { list-style-type: circle; } .square-list { list-style-type: square; } .disc-list { list-style-type: disc; ...

Read More

How to control the shape or appearance of the marker with CSS?

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

The list-style-type CSS property allows you to control the shape or appearance of list markers in both ordered and unordered lists. This property provides various built-in marker styles to enhance your list presentations. Syntax list-style-type: value; Common Values for Unordered Lists List Style Types Circle Markers Apple Mango Grapes ...

Read More

How to indicate whether the marker should appear inside or outside of the box containing the bullet points with CSS?

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

The list-style-position property controls whether list markers (bullets, numbers) appear inside or outside the content area of list items. This property is particularly important when list items contain long text that wraps to multiple lines. Syntax list-style-position: inside | outside | initial | inherit; Values Value Description outside Default. Marker appears outside the content area. Text wraps align with the first line. inside Marker appears inside the content area. Text wraps underneath the marker. initial Sets to default value (outside) inherit ...

Read More

Specify all the list properties into a single expression with CSS

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

The list-style property is a CSS shorthand that allows you to specify all list-related properties in a single expression. It combines list-style-type, list-style-position, and list-style-image into one convenient declaration. Syntax list-style: [list-style-type] [list-style-position] [list-style-image]; The values can be specified in any order, and any omitted values will use their default. Properties Combined Property Description Default Value list-style-type Bullet or numbering style disc (ul), decimal (ol) list-style-position Position of marker outside list-style-image Custom image for bullets none Example: Basic List Styling ...

Read More

Set the distance between the marker and the text relating to that marker with CSS

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

The marker-offset property was a CSS property designed to control the distance between list markers and their associated text content. However, this property has been deprecated and is no longer supported in modern browsers. What was marker-offset? The marker-offset property was intended to set the spacing between the list marker (bullet, number, etc.) and the text content of list items. It accepted length values like pixels, ems, or centimeters. Syntax (Deprecated) marker-offset: | auto; Example (No Longer Works) This code demonstrates how marker-offset was supposed to work, but it will not ...

Read More
Showing 411–420 of 465 articles
« Prev 1 40 41 42 43 44 47 Next »
Advertisements