In Firefox, the drop down menu html is displayed to the right of the top menu text
Return to Recent Questions
Q:
When doing a multi-frame frameset (1 top frame, 2 bottom frames)
like this:
<frameset ID="frames" ONLOAD="getBottom()" ROWS="50, *" BORDER="0"
FRAMEBORDER="no" FRAMESPACING="0">
   <frame NAME="frmTop" SRC="top.htm" MARGINHEIGHT=0 MARGINWIDTH=0
SCROLLING=NO NORESIZE FRAMEBORDER="0" />
    <frameset ID="bottomFrames" cols="171,*">
     <frame name="frmLeft" src="left.htm" MARGINHEIGHT=0 MARGINWIDTH=0
SCROLLING=NO NORESIZE FRAMEBORDER="0"/>
     <frame name="frmMain" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE
FRAMEBORDER="0" />
    </frameset>
</frameset>
And using the dm_frameinit like this:
dm_initFrame("[object]", 0, 2, 0);
it works fine in IE -> the menus are displayed exactly under the text and in
the bottom right frame.
However, in Firefox, the menu drop down is displayed to the right of the top
menu text, and exactly the number of pixels as the width of the left frame.
Perhaps there needs to be some FireFox checking to fix this?
Can you help me with that?
A:
The problem is in a structure of your frameset.
Mozilla browsers can't determine absolute coordinates for a frame, so
submenus drop down with an offset.
You should create the following frameset structure:
 --|------------
   | menu
 --|------------
   |
   | submenus
   |
Now a top row has 2 columns and all browsers can determine a
width of the 1st column in the second row.
Return to Recent Questions
|