Javascript Articles

Page 279 of 534

Chrome input type="number" CSS styling

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

Chrome provides special CSS pseudo-elements to style the spinner arrows in input type="number" fields. You can hide them completely or customize their appearance. Hiding the Number Input Spinner To completely remove the spinner arrows from number inputs: input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; } input[type=number] { ...

Read More

Why cannot I use iframe absolute positioning to set height/width

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

iFrames are replaced elements in CSS, which behave differently from non-replaced elements like . This difference affects how absolute positioning properties work with dimensions. The Problem with iframe Positioning Unlike regular elements, iframes don't respond predictably to simultaneous top/bottom or left/right positioning for sizing. Setting both top: 0 and bottom: 0 won't automatically stretch an iframe to fill the container height. Solution: Wrapper Div Approach The recommended solution is to wrap your iframe in a element and apply absolute positioning to the wrapper instead. ...

Read More

Do any browsers yet support HTML5's checkValidity() method?

Nitya Raut
Nitya Raut
Updated on 15-Mar-2026 229 Views

Yes, modern browsers widely support HTML5's checkValidity() method. This method validates form elements against their HTML5 constraints and returns true if valid, false otherwise. Browser Support The checkValidity() method is supported in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. It's been widely supported since around 2012-2013. Syntax element.checkValidity() Return Value Returns true if the element meets all validation constraints, false otherwise. Example .valid { ...

Read More

HTML5+CSS3 Framework like BluePrint/960gs?

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

When looking for HTML5+CSS3 frameworks similar to Blueprint or 960gs, you have several modern alternatives that provide responsive grid systems and enhanced styling capabilities. Available Framework Options Here are two notable frameworks that extend beyond traditional grid systems: 52framework Susy 52framework The 52framework (Official Site) is a comprehensive HTML5+CSS3 framework that provides: CSS3 gradients, multiple shadows, and other advanced visual properties CSS3 selectors with Internet Explorer compatibility Enhanced HTML5 video support ...

Read More

cache.manifest works for the first time then fails in HTML

Smita Kapse
Smita Kapse
Updated on 15-Mar-2026 124 Views

HTML5 Application Cache (cache.manifest) can fail after the first load due to caching issues. Here are solutions to ensure proper cache updates. Add NETWORK Section Add the NETWORK section at the bottom of your manifest file to allow network access for unlisted resources: CACHE MANIFEST CACHE: /css/style.css /js/myscript.js /images/logo.png NETWORK: * Version Your Manifest File Include a version parameter in the manifest attribute to force cache updates when content changes: My App Cached Application ...

Read More

HTML5 tag on Android for PhoneGap application

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

PhoneGap is a software development framework by Adobe System, which is used to develop mobile applications. PhoneGap produces apps for all popular mobile OS platforms such as iOS, Android, BlackBerry, and Windows Mobile OS etc. HTML5 Audio support is not consistent across different devices due to codec licensing issues and OS implementation. For playing MP3 files, this can be handled by using PhoneGap's Media class that provides reliable audio programming across all platforms. Using PhoneGap Media Class The Media class provides audio recording and playback functionality. Here's how to implement basic audio playback: // Create ...

Read More

HTML5 appcache with Safari causing cross-site css to not load correctly

Anvi Jain
Anvi Jain
Updated on 15-Mar-2026 227 Views

HTML5 AppCache was designed to enable offline web applications by caching specific resources. However, Safari's strict implementation can cause cross-site CSS files to fail loading when not properly configured in the cache manifest. The Safari AppCache Issue Safari follows the AppCache standard more strictly than other browsers. When a cache manifest is present, Safari blocks any network requests to resources not explicitly listed in the manifest file, including cross-site CSS files. Understanding the Problem When you have a cache manifest like this: CACHE MANIFEST # Version 1.0 CACHE: /styles/main.css /scripts/app.js /index.html ...

Read More

Reset HTML input style for checkboxes to default in IE

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

Resetting HTML input styles for checkboxes to their default native appearance can be challenging in Internet Explorer. Some browsers don't allow complete style resets for form elements. The Problem When you apply global CSS styles to inputs, checkboxes may inherit unwanted styling that you cannot easily reset to their original native appearance. Method 1: Target Specific Input Types Style only the input types you want to modify, excluding checkboxes: input[type="text"], input[type="password"], input[type="email"], input[type="number"] { border: 2px solid green; padding: 5px; } Method 2: ...

Read More

Strange cursor placement in modal when using autofocus in Internet Explorer with HTML

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

Internet Explorer has a known issue where autofocused elements in fading modals cause strange cursor placement. The cursor may appear in unexpected positions or behave erratically when the modal opens. The Problem When using Bootstrap modals with the autofocus attribute on input elements, IE places the cursor incorrectly during the fade transition. This happens because IE handles CSS transitions and focus events differently than other browsers. Solution 1: Modify CSS Transition Override the default modal transition to use only opacity changes: .modal.fade { transition: opacity .3s linear; } ...

Read More

Difference between div~div and div:not(:first-of-type)?

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

In CSS, both div~div and div:not(:first-of-type) can select the same elements in many cases, but they work differently and have different specificity values. Understanding the Selectors The div~div selector uses the general sibling combinator (~) to select any div that comes after another div at the same level. The div:not(:first-of-type) selector targets all div elements except the first one of its type within its parent. Example Structure ...

Read More
Showing 2781–2790 of 5,340 articles
« Prev 1 277 278 279 280 281 534 Next »
Advertisements