Note that there are some explanatory texts on larger screens.

plurals
  1. POStop text from wrapping in <UL> list
    primarykey
    data
    text
    <p>Thanks in advance for your help. I have created a navigation bar using a list. I would like the words within that list to stay in the same position, but when the browser is resized smaller, the text wraps. You can refer to Jfiddle here. <a href="http://jsfiddle.net/kadeemlaurie/KGwWV/" rel="nofollow">http://jsfiddle.net/kadeemlaurie/KGwWV/</a></p> <p>This is the HTML</p> <pre><code>&lt;div id="wrap"&gt; &lt;div class="cntranav"&gt; &lt;ul&gt; &lt;li class="active"&gt;&lt;a href="#"&gt;+Contrabang&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Events&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Store&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;Contact&lt;/a&gt;&lt;/li&gt; &lt;div class="clearFloat"&gt;&lt;/div&gt; &lt;/ul&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p>This is the css</p> <pre><code>body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px} .cntranav{ font-family:Arial, Helvetica, sans-serif; font-size:12px;font-weight:bold;}. cntranav ul{ list-style:none; background:#2d2d2d; background-image: none; border-bottom: 1px solid #000; height:40px; padding:2px;} .cntranav li{ display:block; float:left;} .cntranav li: first-child{ margin-left:5px;} .cntranav a{ display:block; padding:10px; text-decoration:none; color:#bbbbbb; border-top:2px solid transparent;} .cntranav a:hover, .cntranav li.active a{ font-weight:bold; color:#fff; border-top:0px solid #;} .clearFloat{ clear:both;} ul.ul.cntranav li { float:left; padding:7px 8px; } ul.cntranav li.active{ border-top: solid 0px #; color:#fff; font-weight:bold;} ul.cntranav li:hover{ background:#383835; cursor:pointer;} </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. 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