Absolute positioning & menus????

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using FP2002 and I typically use All Webs Menu pro 3.1

I typically build sites that are located in reference to the top left
corner, because I use a menu that is 'absolute positioned'. I want to use
centered tables, instead of the left corner approach... How can I make sure
that visitors will see the menu in the correct location? I've been
hard-coding pages for sites that are centered.... it's a pain.....

??????????

IC
Dave
 
Place your entire content in a centered <div> that is positioned
relatively.
The absolute positioning will then be referenced to the <div> and not to
the <body> or <html> tags.

Courtesy of Murray:

Add this just before the </head> tag:

<style type="text/css">
body {text-align: center; margin:0; padding: 0;}
#wrapper {
margin: 0 auto;
padding: 0;
position: relative;
text-align: left;
width: 760px;
}
</style>

Then after the </head> tag

<body .... > <!-- "..." represents anything else in the body tag, but
remove anything to do with margins -->

<div id="wrapper">

rest of page contents

</div>
</body>
</html>
 
AllWebMenus are devil spawn, you know?

Your links are embedded in javascript (and lots of it, too). Each page has
to fetch this monster mouthful from the server (unless you go to the trouble
of externalizing it). FP cannot find the links in the javscript, meaning
that if you want to move, or rename a file, you have to rebuild the menus
(on each page). Search engines cannot find the links in the javascript,
meaning that if you do not have secondary navigation in plain HTML, your
site will not be spidered. Assisitive devices cannot find the links in the
javascript, meaning that your site will be inaccessible to those needing
such devices to surf. And finally, the menus themselves are non-functional
(and often non-visible) if the visitor has javascript turned off.

But other than that, they're OK.

I wouldn't touch them with Ronx's finger.
 
HELP, Murray!
My organization is changing to Javascript menus so they can expand from a
comparatively small footprint, thinking this looks neater. Are there
alternatives to Javascript for slide-out or pull-down menus? Please let me
know.
Thanks -- Mir
 
Back
Top