Area tag styles

C++, C#, Java, PHP, ect...
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Area tag styles

Post 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.
Klown
Posts: 89
Joined: Tue Feb 22, 2011 5:59 am

Re: Area tag styles

Post 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
if( $myGames != "Crap" ) {
  • please_donate( $money );
} else {
  • just_enjoy();
}
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Area tag styles

Post 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
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: Area tag styles

Post 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> )
Post Reply

Return to “Coding”