Forum Moderators: not2easy
Also, do people recommend using image maps or slices to make the links in the nav bar?
Thanks alot
-G
coho75
You may find that a huge graphic as a navigation element (using an image map, i suppose?) will not be very search engine friendly.
umm. you can't.
you have to use a table or a div.
let's say that your nav bar is like this:
------------------
¦ link ¦ link ¦ link ¦
------------------
so you make a repeatable background image (something that doesn't tile.
then you take your link - let's assume one is "home".
so you use some fancy font and make the word home.
save it as a transparent gif - with a background that matches your tile.
then you make a table:
<center>
<table width="100%" border=1 align=center background="background.gif">
<tr>
<td width="33%" align="center"><img src="home.gif"></td>
<td width="34%" align="center"><img src="catalog.gif"></td>
<td width="33%" align="center"><img src="contact.gif"></td>
</tr>
</td>
</table>
</center>
I left out the <a href=""> but obviously to make a link you need that too.
You can't make an expandable image in photoshop - not without it distorting at different widths.
But I do have a few impromptu ideas, listed below in increasing order of effort required. :-)
(1) Any navigation elements in the middle of your navbar? If not, engineer a 'break' there and float the two halves in DIVs (or table elements) so that as the page resizes the graphic can 'stretch'. Add BG color (or a second graphic) to the DIV to fill the gap, making the effect less obvious. Obviously, this would work best with less-complex graphics.
(2) Make the graphic as big as you'd like, then use it as the background (only) for a floating DIV, as described above. Add navigational elements via HTML, as overlaid text. A cleverly-designed graphic will look fine (if somewhat different) at various screen settings, plus adding text-links makes the navbar more SE-friendly.
(3) ...or, create several versions of your navbar. Use a script-type 'sniffer' to determine the reader's screen resolution, then (again, via a script) feed his browser the appropriate graphic...or a different page, for that matter. Of course, this is tricky coding - and some browsers don't reveal user settings to the host-server.
Hope this helps.
Mr F