How to center the drop down box - -Code included

liunx

Guest
Hi all

i have the following code for a horizontal drop down menu but i wasnt able to make it appear in the center of the page. I have included the three files i'm using


The goal is to have the drop down menu in the center , looking as a part of the header.


thanks in advanceAdd to script: window.onresize=function() {ddm1.init();};
Change/add to css:.ddm1 {
margin:auto;
width:10%;
font: 11px verdana;/* fonts of BAR */
}
.ddm1 a {white-space: nowrap;}Hi Fang

thanks a lot. It works perfectly...

cheersHi Fang,

one last thing. If i open the page on a pc with SP2 installed, i get a warning regarding active content.

Is there a way to fix this from the code instead of having the users to change their security level?thread (<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showpost.php?p=337438&postcount=2">http://www.webdeveloper.com/forum/showp ... ostcount=2</a><!-- m -->)Hi all

i have noticed in FireFox that if the webpage is long and the scroll bar is active, then the page moves to the left (to make space for the scroll down bar) but now, the drop down boxes are not alligned. the drop down are a bit to the right.

is there a way to fix this? the code of css and javascript is attached

and also, what is the syntax of the command to show a GIF image in FireFox?

i have this, but the pictures are not displayed:

<img src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.multicards.com/images/bg_footer_poweredby.gif" width="260" height="26" alt border="0">
<img src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.multicards.com/images/footer_website.gif" alt height="22" width="460">

thanks in advance,

warm regards
 
Top