Solved

javascript drop down menu question

Posted on 2006-10-22
2
167 Views
Last Modified: 2010-04-09
Hi

if i download a free javascript drop down menu from other site and trying to implement to my web page,
how should i do beside copy paste it.

let say: there is a centered banner/logo image on my page.
and i want the menu to be appear right under the image.

which html tag code to use or do i need to create some table ?


Thank you
0
Comment
Question by:ilovekeat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 20

Accepted Solution

by:
dsacker earned 125 total points
ID: 17788851
There are a number of ways. Using <DIV>s would make your page easily styled by CSS:

<DIV id=banner><img src=yourbanner.gif></DIV>
<DIV id=dropdown>
  <select id=whatever>
    <option value="1">Example 1</option>
    <option value="2">Example 3</option>
    <option value="3">Example 3</option>
  </select>
</DIV>

If you wanted to do it the old-fashioned "table" way, complete with centering:

<TABLE align=center>
  <TR><TD><img src=yourbanner.gif></TD></TR>
  <TR><TD>
    <select id=whatever>
      <option value="1">Example 1</option>
      <option value="2">Example 3</option>
      <option value="3">Example 3</option>
    </select>
  </TD></TR>
</TABLE>

You could also simply use paragraphs and center them:

<P align=center><img src=yourbanner.gif></P>
<P align=center>
  <select id=whatever>
    <option value="1">Example 1</option>
    <option value="2">Example 3</option>
    <option value="3">Example 3</option>
  </select>
</P>

Hope any of these three suggestions help.
0
 
LVL 20

Expert Comment

by:dsacker
ID: 18122981
B?
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question