Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to expand the width for one div element instead of entire page
    primarykey
    data
    text
    <p>I have the header navigation menu which needs the width 120% to be displayed in single row otherwise the text is getting into next line</p> <p>If i set the width 120% for that particular div navigation menu, The Entire page width also expanding.</p> <p>I don't want to increase the Entire page width Just I need to display that navigation tab menu "pharma-menu" in a single row.</p> <p>This is how i am including theat menu in Django template:</p> <pre><code> &lt;div id="pharma-menu" style="width:120%"&gt; {% include "pharma_center/tab2.html" %} &lt;/div&gt; </code></pre> <p><strong>The expanded HTML drgged from firebug:</strong></p> <pre><code> &lt;div style="width:120%;float:left;white-space:nowrap;" id="pharma-menu"&gt; &lt;title&gt;A very basic Superfish menu example&lt;/title&gt; &lt;meta content="text/html;charset=utf-8" http-equiv="content-type"&gt; &lt;link media="screen" href="/site_media/css/superfish.css" type="text/css" rel="stylesheet"&gt; &lt;script src="/site_media/js/jquery-1.2.6.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/site_media/js/hoverIntent.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/site_media/js/superfish.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; // initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); &lt;/script&gt; &lt;ul class="sf-menu sf-js-enabled sf-shadow"&gt; &lt;li class="current"&gt; &lt;a href="/pharma/search/722/" class="sf-with-ul"&gt;Patient Intelligence&lt;span class="sf-sub-indicator"&gt; »&lt;/span&gt;&lt;/a&gt; &lt;ul style="display: none; visibility: hidden;"&gt; &lt;li&gt; &lt;a href="/pharma/search/722/"&gt;Search Keywords&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/patient_view/722/"&gt;Patient View Point&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/report/722/?category=patient"&gt;Data &amp;amp; Research&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class=""&gt; &lt;a href="/pharma/sem/722/" class="sf-with-ul"&gt;Marketing Intelligence&lt;span class="sf-sub-indicator"&gt; »&lt;/span&gt;&lt;/a&gt; &lt;ul style="display: none; visibility: hidden;"&gt; &lt;li&gt; &lt;a href="/pharma/sem/722/"&gt;Search Engine Marketing&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/ad/722/"&gt;Display Advertising&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/media/722/"&gt;Social Media&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/report/722/?category=market"&gt;Data &amp;amp; Research&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class=""&gt; &lt;a href="/pharma/sales/722/" class="sf-with-ul"&gt;Organization Intelligence&lt;span class="sf-sub-indicator"&gt; »&lt;/span&gt;&lt;/a&gt; &lt;ul style="display: none; visibility: hidden;"&gt; &lt;li&gt; &lt;a href="/pharma/sales/722/"&gt;Sales&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/marketing/722/"&gt;Marketing&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/rd/722/"&gt;R&amp;amp;D&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/clinical/722/"&gt;Clinical Trials&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/report/722/?category=organization"&gt;Data &amp;amp; Research&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/comp/722/"&gt;Competitors&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="/pharma/clinicalIntelligence/722/"&gt;Clinical Intelligence&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p> <strong>Atleast I should get the Patient Intelligence in two lines display instead of only one line display What I have to define to display into two lines?</strong> <img src="https://i.stack.imgur.com/bkI2R.png" alt="enter image description here"> If i proceed in this way The page width also getting expanded.</p>
    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.
 

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