/    Sign up×
Community /Pin to ProfileBookmark

How to keep navigation bar drop down in front of everything else?

Using html and css to make a navbar with html code similar to this:

<table><tr><td>
<li><a href=”/”>Home</a></li></td><td>
<li>Contact
<ul>
<li><a href=”/contact”>Contact method1</a></li>
<li><a href=”/contact2″>Contact method2</a></li>
<li><a href=”/contact3″>Contact method3</a></li>
<li><a href=”/contact4″>Contact method4</a></li>
</ul>
</li>
</td></tr></table>

What can I add to make the drop down menu stay in front of all other objects, such as embedded videos and a twitter feeds. Currently the drop down will go behind these objects…

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@VictoriousMay 07.2011 — Using html and css to make a navbar with html code similar to this:

<table><tr><td>

<li><a href="/">Home</a></li></td><td>

<li>Contact

<ul>

<li><a href="/contact">Contact method1</a></li>

<li><a href="/contact2">Contact method2</a></li>

<li><a href="/contact3">Contact method3</a></li>

<li><a href="/contact4">Contact method4</a></li>

</ul>

</li>

</td></tr></table>

What can I add to make the drop down menu stay in front of all other objects, such as embedded videos and a twitter feeds. Currently the drop down will go behind these objects...[/QUOTE]


give it position absolute and a very high z-index and don't forget to set up the wmode=transparent on your videos to support z-index.
Copy linkTweet thisAlerts:
@lvwdMay 10.2011 — change to a div if you can and your positioning can be a little more accurate
×

Success!

Help @frenchfries spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...