Posts

Showing posts with the label HTML5

Responsive HTML Image Maps - How to Fix Mobile Issues

Image
ᴡⁿ ᡗᢦᡐᡉ˒ α΅’αΆ  αΆœΛ‘αΆ¦α΅α΅ƒα΅—α΅‰ α΅‰α΅α΅‰Κ³α΅α΅‰βΏαΆœΚΈ https://climateclock.world/ The issue you're encountering likely stems from the use of an HTML image map (<map> and <area> tags) for creating clickable regions on the banner image. While image maps can work, they are not always the best choice for responsive design, especially on smartphones, because they rely on fixed pixel coordinates (coords) that don't scale well with different screen sizes or resolutions. Switching to a <div>-based layout with CSS positioning is a more modern and flexible approach for responsive design. Grok solution (works good for me) πŸ’‘ Alternative: Use SVG instead of <map> or ✅ Solution: Make it responsive using width: 100% and JavaScript or a plugin to scale coordinates. ChatGPT solutions

Drag & Drop Legacy

Image
ᴡⁿ ᡗᢦᡐᡉ˒ α΅’αΆ  αΆœΛ‘αΆ¦α΅α΅ƒα΅—α΅‰ α΅‰α΅α΅‰Κ³α΅α΅‰βΏαΆœΚΈ https://climateclock.world/ Modern internet browsers support the HTML5 Drag and Drop API by default, allowing drag-and-drop functionality without requiring additional JavaScript for basic operations. This means that elements can be made draggable using the draggable="true" HTML attribute, and browsers handle the default drag-and-drop behavior (e.g., dragging images, links, or text selections) without custom scripting. However, JavaScript is typically needed to customize or enhance the behavior beyond the browser's built-in defaults. Here’s a breakdown of newer internet browsers that support the HTML5 Drag and Drop API by default as of March 28, 2025: Google Chrome Version Support: Fully supported since version 4 (released 2010). Details: Chrome supports basic drag-and-drop operations for images, links, and text selections out of the box. The draggable attribute works natively, and default behaviors (like dragging a link to the address...

Luka Jagor πŸƒ‍♂️

Latest Runs