Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This code should work:</p> <p>I've added a wrapping div to your menu with a fixed width and centred it on the page. Then added each a tag into an li.</p> <p>Your jQuery Menu is now broken but it should just be a case of finding the correct elements again now the orders have changed in the dom. </p> <p>You might also have to create some new styles and add them to the elements again. As I've probably messed a few bits up. I'd suggest adding proper classes and id's so you don't run into styling problems in the future.</p> <pre><code>&lt;div id="nav"&gt; &lt;ul&gt; &lt;li&gt; &lt;a alt="STORE" class="navmenu faded" href="http://www.ideagasms.net/ideagasms-products/"&gt;STORE&lt;/a&gt; &lt;ul class="file_menu"&gt; &lt;li&gt;&lt;a href="#file"&gt;File&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#edit"&gt;Edit&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#view"&gt;View&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#insert"&gt;Insert&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#modify"&gt;Modify&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#control"&gt;Control&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#debug"&gt;Debug&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#window"&gt;Window&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#help"&gt;Help&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a alt="HOME" class="navmenu faded" href="http://www.ideagasms.net/link"&gt;HOME&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a alt="VIDEO" class="navmenu faded" href="http://www.ideagasms.net/link"&gt;VIDEO&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a alt="ABOUT" class="navmenu faded" href="http://www.ideagasms.net/link"&gt;ABOUT&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a alt="CONTACT" class="smcf-link navmenu faded"&gt;CONTACT&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a alt="DONATIONS" class="navmenu scroll faded" href="http://www.ideagasms.net/link"&gt;DONATIONS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a alt="MENTORING" class="navmenu faded" href="http://www.ideagasms.net/link"&gt;MENTORING&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a alt="BEAUTY" class="navmenu faded" href="http://www.ideagasms.net/link"&gt;BEAUTY&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a alt="SNIPPETS" class="navmenu scroll faded" style="letter-spacing:1px" href="http://www.ideagasms.net/link"&gt;#iG&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;style type="text/css"&gt; #buttonnav { float:left; height: 25px; width: 100px; margin-bottom:1cm; position:relative; z-index:9; } #nav { margin: auto; width: 740px; background: orange; } ul { margin: auto; } ul li { display: inline; float: left; } .menu_class { border:1px solid #1c1c1c; } ul.file_menu { cursor:pointer; display:none; width:260px; border: 1px solid #1c1c1c; margin:0; padding:0; list-style:none; } .file_menu li { background-color: #302f2f; } .file_menu li a { color:#FFFFFF; text-decoration:none; padding:10px; display:block; } .file_menu li a:hover { padding:10px; font-weight:bold; color: #F00880; } &lt;/style&gt; </code></pre>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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