Note that there are some explanatory texts on larger screens.

plurals
  1. POI can't get my Drop Down menu show the <a> in two lines
    primarykey
    data
    text
    <p>This is my first ;-) </p> <p>I've got a problem with my drop down menu. The text of my is quite long and I would like to show it in two rather than in one line. I'm trying it for the last two days but couldn't make it work. I change the width to go for 1 line - but it doesn't look nice. I'm pretty sure that I'm missing something simple - but I can't see it. </p> <p>I would appreciate any help a lot!</p> <p>This is my code:</p> <p>My HTML:</p> <pre><code>&lt;ul class="supplier_top_link"&gt; &lt;li&gt;Category 1 &lt;ul class="supplier_1"&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 3&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 4&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Category 2 &lt;ul class="supplier_1"&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 3&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 4&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Category 3 &lt;ul class="supplier_2"&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 3&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 4&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Category 4&lt;/a&gt; &lt;ul class="supplier_2"&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Very very very long Sub-Category 3&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Another long Sub-Category 4 &amp; Category 5&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 6&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Sub-Category 7&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Very long Sub-Category 8&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>My CSS:</p> <pre><code>.supplier_top_link { position : relative; font-size : 14px; font-weight : 400; z-index : 3; } .supplier_top_link li { position : relative; display : inline-block; } .supplier_top_link li ul { position : absolute; top : 25px; display : none; } .supplier_top_link li:hover ul { padding-top : 4px; display : block; } .supplier_top_link li ul li { position : relative; display : block; } .supplier_top_link li ul li a { color : #a6a6a6; font-size : 14px; display : block; float : left; background : #191919; border-top : 1px solid #333; width : 230px !important; height:28px; min-height:28px; padding : 0 10px; -moz-border-radius:0px; -webkit-border-radius:0px; border-radius:0px; } .supplier_top_link li ul li a:hover { color : white; border-top : 1px solid #ff6c00; } .supplier_1 li a { text-align:left; } .supplier_2 { margin-left:-150px; } .supplier_2 a { text-align:right; padding-right:15px; } </code></pre>
    singulars
    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