Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to make a unordered list nav mobile friendly
    primarykey
    data
    text
    <p>I'm trying to make the navigation on my site responsive (and ultimately mobile friendly), but I can't get it to work the way I want to.</p> <p>Ideally, the logo would be on top and the other nav links would be stacked (one per line) below on screens less than 480px, but I'll settle for anything that is legible on a mobile screen for now.</p> <p>I've looked into a lot of different responsive options, but nothing seems to work for how my nav is set-up.</p> <p>The site is live here: <a href="http://prettylushrecords.com/" rel="nofollow">http://prettylushrecords.com/</a></p> <p>Relevant HTML:</p> <pre><code>&lt;body&gt; &lt;ul id="navmenu"&gt; &lt;li&gt;&lt;a href="http://prettylushrecords.storenvy.com/"&gt;STORE&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="bands"&gt;BANDS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="releases.html"&gt;RELEASES&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="about.html"&gt;ABOUT&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Relevant CSS:</p> <pre><code>#navmenu { background: url(http://prettylushrecords.comoj.com/prettylushlogosmall.png) no-repeat center top; position: relative; margin: auto; overflow: hidden; padding: 0; width: 100%; } li, li + li + li + li { display: block; float: left; height: 220x; width: 200px; margin: 0; padding: .5em 1%; text-align: center; vertical-align: middle; width: 18%; } li + li + li { margin-left: 20%; padding: .5em 0; } li { font-size: 2.5em; color: #000; line-height: 220px; font-family: Courier, monospace; font-weight: bold; color: #bdb0b0; } @media only screen and (max-device-width: 480px) { #navmenu { background: url(http://prettylushrecords.comoj.com/prettylushlogosmall.png) no-repeat center top; position: relative; margin: auto; overflow: hidden; padding: 0; width: 100%; } li { font-size: 1em; color: #000; line-height: 100px; font-family: Courier, monospace; font-weight: bold; color: #bdb0b0; } </code></pre>
    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.
    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