HTML Articles

Page 133 of 151

The correct way to work with HTML5 checkbox

Giri Raju
Giri Raju
Updated on 15-Mar-2026 255 Views

HTML5 checkboxes allow users to select multiple options from a list. The correct syntax uses the input element with type="checkbox". Syntax Basic Example Here's a simple checkbox form with labels: HTML5 Checkbox Example Mathematics ...

Read More

Make HTML5 Canvas fill the whole page

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

To make an HTML5 canvas fill the entire browser viewport, you need to remove default margins/padding and set the canvas dimensions to 100% of the page. CSS Setup First, reset the default browser styles and set up the HTML structure: * { margin: 0; padding: 0; } body, html { height: 100%; overflow: hidden; /* Prevents scrollbars */ } #canvas { position: absolute; top: 0; left: 0; ...

Read More

HTML5 Input type "number" in Firefox

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

The HTML5 input type "number" provides built-in validation and spinner controls for numeric input. However, browser support for certain attributes like min and max has varied across different versions of Firefox. Browser Support Overview Modern Firefox versions (52+) fully support the min and max attributes for number inputs. Earlier Firefox versions had limited support, but this is no longer an issue for current web development. Example Here's a complete example demonstrating the number input with validation attributes: HTML5 Number Input ...

Read More

Passing mouse clicks through an overlaying HTML element

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 1K+ Views

When you have an overlaying HTML element that blocks mouse clicks to elements beneath it, you can pass clicks through using CSS or JavaScript techniques. Method 1: Using CSS pointer-events The simplest approach is to use the CSS pointer-events property to make the overlay non-interactive: .overlay { pointer-events: none; } Example: CSS pointer-events .overlay { position: absolute; ...

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 443 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

Clear the float of an element with Bootstrap

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 643 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 405 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

Split Button Dropdowns with Bootstrap

Daniol Thomas
Daniol Thomas
Updated on 15-Mar-2026 626 Views

Split button dropdowns use the same general style as the dropdown button but add a primary action along with the dropdown. Split buttons have the primary action on the left and a toggle on the right that displays the dropdown. Basic Structure A split button dropdown consists of two buttons wrapped in a btn-group container: Primary button: Performs the main action when clicked Dropdown toggle: Shows/hides the dropdown menu with additional options Example You can try to run the following code to create split button dropdowns: ...

Read More
Showing 1321–1330 of 1,509 articles
« Prev 1 131 132 133 134 135 151 Next »
Advertisements