Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dougstar

Members
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    dougstar reacted to BrowserBugs in image map   
    Totally agree. But as they've said it's learning image maps. In which case to get the following area I used Photoshop to measure the area we want.

    <img src="take-a-break.png" alt="Sign" width="225" height="225" usemap="#kitkat"> <map name="kitkat"> <area shape="rect" coords="39,21,187,193" alt="Take a Break" href="https://www.kitkat.com/"> </map> ... but please read image map to ensure you know how it all works, especially how the coordinates are calculated.
  2. Like
    dougstar reacted to fisicx in image map   
    Remember also that the image map will only work if the image is 225 x 225. If you have a smaller image on mobile phone it won't won't anymore. Same if people zoom in and out.
  3. Thanks
    dougstar reacted to davep in image map   
    @fisicx on desktop at least  if you zoom in in chrome it retains the coordinates and still works. using a style of max-width: 100% on a screen smaller than 225 shrinks the images but the coordinates remain the same, thus breaking the image map. But, are there any circumstance under which the image would be smaller than 225? on the other hand if this was for example a clickable map or diagram then it probably wouldn't work responsively as either the 'map' would become too small or mulitple clickable targets would be too close together. for this scenario you could then unhide a list clickable links (styled as a list )for when the image map can no longer function as an image map. 

    I recently had the same problem but didn't use an image map but instead svgs positioned absolutely by precentage) within a parent container so the links always work when scaled, and then when they become too difficult to click on the image, display a list of the links like a legend to a diagram
  4. Like
    dougstar reacted to fisicx in image map   
    I agree.
    It's more about handheld devices - which is what most people use for casual browsing.
  5. Like
    dougstar reacted to Jack in image map   
    This seems really unnecessary to shave off about 60px on an image, it's much easier to just set the precedence with your client that the entire image should be linked.
    Fisicx is right. Since it's using fixed coordinates, if the image changes size you'll have to put work into getting the image map to scale correctly. Also, if the image itself changes you may find it's not placed in the correct area at all.
    This sort of thing can seem fine initially, but your client may want to do this with more than one image. If that happens you'll end up with a bunch of redundant code everywhere, and the site will be more difficult to maintain.
  6. Like
    dougstar reacted to davep in image map   
    @jack "This seems really unnecessary to shave off about 60px on an image, it's much easier to just set the precedence with your client that the entire image should be linked." i agree  but it's probably being used an as example of linking areas in image maps when it does make sense (e.g. a geographicalmap with clickable areas) but is starting them (the students) with a simple example
  7. Like
    dougstar reacted to Jack in image map   
    I didn't actually see the student part. Learning how this works is fine, although, I haven't seen the map syntax used in ages.
    I still think a lot of this type of UI stems from print design and usually translates poorly on the web. For example, a geographical map is fine in principle, but only if your users know where the location is on a map. Even something that seems trivial should be followed by direct links to the pages with text, at that stage you have to wonder if the graphic is even worth adding to begin with, especially if it's not just a straight-forward image.
  8. Like
    dougstar reacted to harsimarriar96 in image map   
    I think it is a good idea to do it like that but if you want you can use a tool like https://www.image-map.net/ to create hotspot for your images.
  9. Thanks
    dougstar reacted to fisicx in image map   
    That's not good UX. People don't expect hotspots. The expect to touch an image (on desktop, tablet and phone) and not have to hunt for a hotspot. Especially one that only 225 square and will almost certainly be a lot smaller on a phone.
    But if you really want a hotspot the image map link @BrowserBugs posted might work

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.