I have area code for map in html, and i need to add class for this like:-
<area shape="rect" coords="<?php echo $coords; ?>" href="javascript:void(0);" id="poplink_<?php echo $units_id; ?>" <? if ($status_units == "sale"){?> class="sale" <? } elseif ($status_units == "was_book"){?> class="was_book" <? } else {?> class="was_sale" <? } ?>>
In PHP is print like:-
<area shape="rect" coords="<?php echo $coords; ?>" href="javascript:void(0);" id="poplink_<?php echo $units_id; ?>" class="sale" >
And class is like:-
.sale{ background: url(../images/sale.png);
background-position: 97% center;
background-repeat: no-repeat;
padding-right: 34px;
display: inline-block;
position: relative;
cursor: pointer;}
.was_book{ background: url(../images/was_book.png);
background-position: 97% center;
background-repeat: no-repeat;
padding-right: 34px;
display: inline-block;
position: relative;
cursor: pointer;}
.was_sale{ background: url(../images/was_sale.png);
background-position: 97% center;
background-repeat: no-repeat;
padding-right: 34px;
display: inline-block;
position: relative;
cursor: pointer;}
I have picture that show all available hose to sale, and i need to add markers for sale house, Like google map.
The error is, The images of class not show . why !!!