Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML: How do you make a horizontal Navigation Bar have drop down menus?
    primarykey
    data
    text
    <p>I'm fairly new to HTML/CSS coding, but I'm currently learning and developing a website. However, I'm sort of stuck on the process of my navigation bar. I managed to get a navigation bar to work, a horizontal one, with a working background image. The one thing I do have trouble with is having my navigation bar have drop down menus, like this: <a href="http://maxcdn.webappers.com/img/2008/10/free-css-drop-down-menu.png" rel="nofollow">http://maxcdn.webappers.com/img/2008/10/free-css-drop-down-menu.png</a>. Except without the extra sub-menus. Here's what I have so far:</p> <p>HTML:</p> <pre><code>&lt;div id="menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;blank&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;about&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;site&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div style="z-index:0;left:0;top:0;width:100%;height:100%"&gt; &lt;img src="unknown.jpg" style='width:100%;height:100%'/&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>#menu { width: auto; height: auto; font-size: 16px; font-family: Tahoma, Geneva, sans-serif; font-weight: bold; text-align: center; text-shadow: 3px 2px 3px #333333; background-color: #8AD9FF; border-radius: 8px; } #menu ul { height: auto; padding: 8px 0px; margin: 0px; display: inline; } #menu li { display: inline; padding: 20px; } #menu a { text-decoration: none; color: #00F; padding: 8px 8px 8px 8px; } #menu a:hover { color: #F90; background-color: #FFF; } </code></pre> <p>Sorry if the question is relatively easy to answer, but I'm having trouble. I'm not sure how to change my HTML code into a code where visitors can hover their mouse over, for example, contact and they'll have the option to pick either Administrator or Other. Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload