Page 1 of 1

Area tag styles

Posted: Mon Apr 04, 2011 6:10 pm
by hallsofvallhalla
Trying to highlight or even color a area tag and it doesnt seem to work

Code: Select all

echo "<area style='background-color:#FF0000' shape='rect' coords='" . $mapsplit[0] . "," . $mapsplit[1] . "," . $mapsplit[2] . "," . $mapsplit[3] . "' href='adventure.php?" . $mapsplit[4] . "&id=" . $mapsplit[5] . "' TITLE='" . $mapsplit[6] . "'    />";
everything else works, BTW this is a dynamic area map system hence all the variables.

Re: Area tag styles

Posted: Tue Apr 05, 2011 12:14 am
by Klown
im pretty sure this cannot be done. you can add style to the image or maybe you could set a background image shaded in different areas than a foreground image by layering them. but styling an area tag, never heard of it.

:| if im somehow wrong and there is a guru out there who can do this, please link me to the solution. Id love to know myself.

-klown

Re: Area tag styles

Posted: Wed Apr 06, 2011 4:13 pm
by hallsofvallhalla
says here you can

http://www.w3schools.com/TAGS/tag_area.asp
style style_definition Specifies an inline style for an element STF

Re: Area tag styles

Posted: Wed Apr 06, 2011 7:48 pm
by Xaleph
Area tags are inline elements, which means they need text in them or give a height and width, and make sure it`s a display: block, also, they need a closing bracket for the tag ( </area> )