Home >Web Front-end >CSS Tutorial >Why doesn't CSS `area:hover` work to style my HTML image map areas?

Why doesn't CSS `area:hover` work to style my HTML image map areas?

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-12-16 01:23:13529browse

Why doesn't CSS `area:hover` work to style my HTML image map areas?

Sure, here is a properly formatted version of the article:

How to apply Hovering on html area tag?

Question:

I am trying to hover the area tag of HTML. I tried this in CSS:

area:hover
{
  border:1px solid black;
}

This is the HTML on which it should be applied.

<!-- This imagemap inserted by Gwyn's Imagemap Selector http://gwynethllewelyn.net/gwyns-imagemap-selector/ -->
<img src='http://dailyaeen.com.pk/epaper/wp-content/uploads/2012/09/27+Sep+2012-1.jpg?1349003469874' usemap='#imgmap_css_container_imgmap201293016112'>

The above is the detailed content of Why doesn't CSS `area:hover` work to style my HTML image map areas?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn