Positioning the Menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
flyfree432
Beginner
Beginner
Posts: 8
Joined: Sun May 07, 2006 5:42 am

Positioning the Menu

Post by flyfree432 »

This is probably a simple question, but I'm having a hard time figuring out how to position the menu on my page.

This is where I set the menu up:

http://www.flyfreecatholicforums.com/MenuTemplate.html

This is the code

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Flyfree Catholic Forums Template - Version4.0</title>

</head>
<body>
Position Menu Test<BR>
<BR>Position menu Test<BR>

<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="https://milonic.com/">Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>
<script type="text/javascript" src="menu_data.js"></script>
<br><br><br>The Flyfree Catholic Forums - Under Construction. 
</body>
</html>
I don't necessarily want to put the menu in a table, but I would like to put our website banner on each page above the menu. How do I do this?

Thanks.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

there are several options to do this. One suggestion is as follows:

- Place your banner, starting right on top
- position the menu just below the banner,

your menu, as it is, is positioned absolute, by using the top= and left= properties.

Code: Select all

with(mainmenu1=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
margin=2;
orientation="horizontal";
style=menuStyle;
top=10;
Next, it depends on of what type of design you are in favour, will your page be centered or left oriented ?
If left oriented, maintain the top/left combination as above, just modify top=10; to the start-pixel, depending on the heigth of your banner.
If centered add screenposition="center"; to the menu properties and modify the left property to left="offset-x"; where x should be a value depending on half of the total width of the menu.

Please see
http://milonic.com/menuproperties.php


Everything is different if you would like to put tthe menu into table cells. Please see
http://milonic.com/tablemenu.php

Michael





Suggestion is to add screenposition=
Post Reply