Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Shuffles the rest of content

Status
Not open for further replies.

livezone

MIS
Jan 17, 2003
81
CA
Hi,
I am using the following code to display the links as Menu Bar. But when this menu display all the contents below this menu are reshuffled down. Is there a way to display the menu as a layer about the existing data?
Here is my code

<code>
<SPAN onMouseOver="document.all.menu1.style.display = 'block'"
onMouseOut="document.all.menu1.style.display = 'none'">Tutorials<BR>

<SPAN ID="menu1" onClick="document.all.menu1.style.display = 'none'">

<A HREF="frame1.html">Frames</A><BR>
<A HREF="tbl.html">Tables</A><BR>
<A HREF="dhtml.html">DHTML</A><BR>
<A HREF="forms.html">Forms</A>

</SPAN>
</SPAN>

</code>
 
If I understand your question correctly, you might try to set the style property POSITION equal to 'absolute' for the inner SPAN.

Code:
<SPAN ID="menu1" onClick="document.all.menu1.style.display = 'none'" [b]style='position:absolute'[/b]>

See if that does what you're after.

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top