HTML CSS examples for CSS Layout:Responsive Layout
Responsive CSS Image Anchor tags - Image Maps style
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { height:100%; } #block {<!--from w w w.j a va2s . com--> float:left; width:100%; max-width:401px; position:relative; } #content { height:100%; min-height:100%; } #block img { max-width:100%; display:inline-block; } a.one { height:29%; width:26%; position:absolute; top:56%; left:6%; display:block; background:Chartreuse; } a.two { height:29%; width:26%; position:absolute; top:61%; left:71%; display:block; background:yellow; } </style> </head> <body> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> <title>Lorem ipsum</title> <div id="content"> <div id="block"> <div> <img src="https://www.java2s.com/style/demo/Firefox.png"> </div> <a href="#" class="one"></a> <a href="#" class="two"></a> </div> </div> <!--/content--> </body> </html>