Forum Moderators: not2easy
-James
You need to do some reading on the html <map> tag.
There are some very good html resources on the web.
Try this search:
[google.com...]
-Marty
Since you can't "slice" an image into any shape except a rectangle, this can be very heplful functionality. Here's the image map tutorial page [kasparius.com]. (Warning - this page does not display properly in Opera)
My preference is to lay the image down as a background to a table, or as an underlying layer; then overlay all the links on top using table cells or something to position them.
Do you do this sometimes for body text as well?
Take this image for example:
I want to place this image in a table cell and fill it with paragraphs of text.
I know I could simply use fireworks or photoshop to write the text and save it as a .gif, but I would rather use CSS text. Is it possible to place text over images like I'm talking about?
Thanks for any insight.
Thanks for any help.
I use an image as a background for a music/artist feedback survey throughout my site. I can edit the form text for specific applications, but the image remains the same... talk about getting mileage!
You can check my user profile for the site and use this page for an example: 12_pearls.htm
There are lots of ways to do this with CSS, just be certain to check results for NN4 if that browser is included in your targeted audience.
NN4 and table background images can be troublesome. On a strictly personal note... I do not style for NN4 but am beginning to use the @import rule to serve "unstyled" pages to older browsers. This allows me a larger CSS "toolbox."
This is profound if this actually works out. Man, when can we be free to fully harness the power of CSS without these bleeding browser problems? It will make life so much simpler.
Anyway, for some reason...When I type text in my table cell as one normally would. It doesn't want to follow my lead for some reason. If you could look at that link again (of course I would appreciate it), the text will not recognize the table cell boundaries--I have to add a <br /> to get separate lines. Also the type only starts in the center instead of the top down.
Ever seen this before or know what I'm talking about?
Thanks for your help on this...
.qt-textbox{ width:100%; height:100%;
background:#003 url(images/help.gif) no-repeat;
color:#000;}
(you can also define the div with fixed measurements to match you image: {width:420px; height270px;}
Then remove the image from the table cell and insert this "styled" div:
<td width="98%" align="center"><div class="qt-textbox">type your text here</div></td >
If you use "centered" text, padding will not be an issue, but if you wish standard, left alignment you can use "paragraphs" within the table cell and apply padding there, thus avoiding the "box-model" issue.
.qt-textbox p {padding:0 5x;}
This will create a rule for paragraphs within .qt-textbox using 0px for top/bottom and 5px for right/left.
Try adding "px" to your fixed td width & height. Divs can also be defined using width:200; but will fail to wrap text without some unit identifier e.g. px.
<map name="FPMap0">
<area href="page1.htm" shape="circle" coords="13, 164, 11">
<area href="page2.htm" shape="circle" coords="60, 164, 11">
<area href="page3.htm" shape="circle" coords="150, 119, 11">
<area href="page4.htm" shape="circle" coords="159, 82, 11">
<area href="page5.htm" shape="circle" coords="109, 62, 11">
<area href="page6.htm" shape="circle" coords="194, 14, 11">
<area href="page7.htm" shape="circle" coords="89, 164, 11">
<area href="page8.htm" shape="rect" coords="141, 156, 166, 184">
<area href="page9.htm" shape="rect" coords="168, 156, 189, 184"></map>
<img src="backgroundimage.gif" usemap="#FPMap0" width="226" height="194" />
I don't know how cross-browser this works...my app is an IntraNet, so only has to work in IE and Opera. Image maps are one thing that FrontPage is good for, as I let it write the HTML for me.
This works in Opera, IE and even NN4.x!
<img src="assets/ismsound_features.jpg" width="390" height="211" border="0"
alt="Ism Sound Network includes members from throughout the music industry." usemap="#ismnetwork"/>
<map name="ismnetwork">
<area alt="BIG BAER Marketing & Promotions" coords="2,178,206,210" href="http://www.xxxx.com/" target="_blank">
<area alt="DAM Recording" coords="11,5,168,28" href="http://www.xxxxx.com/" target="_blank">
<area alt="Know Budget Entertainment" coords="264,93,279,136" href="http://www.xxxxxx.com/" target="_blank">
<area alt="Colossal Mastering" coords="7,90,74,121" href="http://www.xxxxxxx.com/" target="_blank">
<area alt="Planet Sounds" coords="239,5,381,33" href="http://www.xxxxxxx.com/" target="_blank">
<area alt="VIP-TV" coords="308,148,380,175" href="http://www.xxxxxx.com/" target="_blank">
<area alt="ASCAP" coords="129,77,175,132" href="http://www.xxxxxx.com/" target="_blank">
<area alt="Frontline Hip Hop" coords="73,138,171,168" href="http://www.xxxxxxx.com/" target="_blank">
<area alt="Uptown Recording" coords="207,143,301,168" href="http://www.xxxxxxxx.com/" target="_blank">
<area alt="Chicago Sound Factory" coords="205,39,246,70" href="http://www.xxxxxxxx.com/" target="_blank">
<area alt="Secure Media" coords="182,97,255,138" href="http://www.xxxxxxxx.com/" target="_blank">
<area alt="Rolling Out Magazine" coords="136,36,199,69" href="http://www.xxxxxxxx.com/" target="_blank">
<area alt="CUMA" coords="83,87,117,125" href="http://www.xxxxxxx.com/" target="_blank">
<area alt="Studio Chicago" coords="256,49,382,86" href="http://www.xxxxxxxx.com" target="_blank">
</map>
The online example can be seen at ismsound.com/featurism.htm