Javascript Articles

Page 394 of 534

Specify all the list properties into a single expression with CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 163 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 416 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

Usage of CSS list-style-position property

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

The list-style-position property controls whether list markers (bullets, numbers) appear inside or outside the content area of list items. Syntax list-style-position: inside | outside | initial | inherit; Values outside (default): Markers appear outside the content area inside: Markers appear inside the content area Example: Outside vs Inside Positioning .outside-list { list-style-position: outside; ...

Read More

LCM of an array of numbers in Java

George John
George John
Updated on 15-Mar-2026 4K+ Views

L.C.M. or Least Common Multiple of two values, is the smallest positive value which is a multiple of both values. For example, multiples of 3 and 4 are: 3 → 3, 6, 9, 12, 15 ... 4 → 4, 8, 12, 16, 20 ... The smallest common multiple is 12, hence the LCM of 3 and 4 is 12. Understanding LCM of Array To find the LCM of an array of numbers, we can use the mathematical relationship: LCM(a, b) = (a × b) / GCD(a, b). For multiple numbers, we calculate LCM iteratively. ...

Read More

Bootstrap Contextual classes

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 2K+ Views

Bootstrap contextual classes allow you to change the background color of table rows or individual cells to convey different meanings and states. These classes provide visual feedback to users about the status or importance of data. Available Contextual Classes Class Description Visual Effect ...

Read More

Bootstrap Form select

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

A select dropdown is used when you want to allow users to pick from multiple options. By default, it only allows one selection, but can be configured for multiple selections. Use for list options with which users are familiar, such as states, countries, or categories. Use multiple attribute to allow users to select more than one option. Bootstrap's form-control class provides consistent styling across browsers. Basic Select Example Here's a simple Bootstrap form with a select dropdown: ...

Read More

Set heights and widths of forms with Bootstrap

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 2K+ Views

Bootstrap provides classes to control form element heights and widths. Use .input-lg, .input-sm for height sizing, and grid classes like .col-lg-* for width control. Height Sizing Classes Bootstrap offers three height sizes for form controls: .input-lg - Large height input Default - Standard height (no class needed) .input-sm - Small height input Width Control with Grid System Use Bootstrap's grid classes to control form element widths. Wrap inputs in .row and use column classes like .col-lg-2, .col-lg-3, etc. Example Here's how to implement different form sizes: ...

Read More

Bootstrap Form TextArea

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 3K+ Views

Bootstrap provides excellent styling for textarea elements in forms. The element is used when you need multiple lines of input from users, such as comments, descriptions, or detailed information. Basic Textarea Syntax To create a Bootstrap-styled textarea, use the form-control class: Label Text Complete Example Bootstrap Forms ...

Read More

Clear the float of an element with Bootstrap

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

To clear the float of an element in Bootstrap, use the .clearfix class. This utility class ensures that a container properly wraps around its floated child elements, preventing layout issues. What is Float Clearing? When elements are floated (using float: left or float: right), their parent container may collapse because floated elements are taken out of the normal document flow. The .clearfix class solves this by forcing the parent to contain its floated children. Example Here's how to use Bootstrap's .clearfix class to clear floated elements: ...

Read More

Clearfix Bootstrap class

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

The Bootstrap .clearfix class solves the common issue of parent containers collapsing when all child elements are floated. It ensures the parent container properly wraps around its floated children. What is Clearfix? When elements are floated using .pull-left or .pull-right, they are removed from the normal document flow. This can cause their parent container to have zero height, leading to layout problems. The .clearfix class forces the parent to expand and contain its floated children. Example Here's how to use the .clearfix class to properly contain floated elements: ...

Read More
Showing 3931–3940 of 5,340 articles
« Prev 1 392 393 394 395 396 534 Next »
Advertisements