I'd do it a little differently. First, in an image program I'd make the entire white part of the image transparent or whatever color the rest of the background of the page is or whatever color you like. Then set it as the page's background, center no-repeat (style blocks go in the head of the page):
Code:
<style type="text/css">
body {
background:url('alabama.gif') pink center no-repeat;
}
</style>
In the above, 'pink' can be any valid color name or a hex value like #efeae0 and it will be the background color of the page in those spots not covered by the image. If the image's white areas have been saved as transparent, it will show through there as well. Now, put whatever you like on top of this on your page. Just make sure that any elements in the markup that you want the state image to show through have their background-color set to transparent, ex:
Code:
<div style="background-color:transparent;"></div>
Simply having no background-color style and no bgcolor attribute set at all may be enough. If you are using an iframe, make sure its allowtransparency="true" attribute is set:
HTML Code:
<iframe name="frame1" src="frame.htm" allowtransparency="true"></iframe>
Bookmarks