Note that there are some explanatory texts on larger screens.

plurals
  1. POCentering <ul> element with inline list
    primarykey
    data
    text
    <p>I'm a bit embarrassed to ask about this, but I'm struggling with centering a UL element inside a DIV. The UL block contains inline LIs.</p> <p>This is the NavMenu on this website: <a href="http://dev.gratefulhearttherapy.org/" rel="nofollow">http://dev.gratefulhearttherapy.org/</a></p> <p>I've tried text-align:center and margin:auto to both the UL element and its parent DIV#headerNav and DIV.custom. None worked.</p> <pre><code>&lt;div id="headerNav"&gt; &lt;div class="custom"&gt; &lt;ul id="mega-menu-77" class="mega-menu" style="display:none;"&gt; &lt;li class="nav-selected nav-path-selected top-level-nav first il-1"&gt;&lt;a class="nav-selected nav-path-selected pl-1" href="/" accesskey="H"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li class="top-level-nav il-72"&gt;&lt;a href="/services/psychotherapy/" class="pl-72" accesskey="S"&gt;Services&lt;/a&gt;&lt;ul class='sub_menu pid-72'&gt;&lt;li class=" il-88"&gt;&lt;a href="/services/psychotherapy/" class="pl-88" accesskey="P"&gt;Psychotherapy&lt;/a&gt;&lt;/li&gt; &lt;li...&gt; ... &lt;/li&gt; &lt;li...&gt; ... &lt;/li&gt; &lt;li...&gt; ... &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>It would be complicated to copy the CSS, so here is the direct file: <a href="http://dev.gratefulhearttherapy.org/index.php/tools/css/themes/gratefulheart/typography-new2.css" rel="nofollow">http://dev.gratefulhearttherapy.org/index.php/tools/css/themes/gratefulheart/typography-new2.css</a> though you'd have a better sense of it using Firebug or Chrome Inspector.</p> <p>Thanks a lot for you figure it out or can lead me to the solution!!</p> <p>Olivier</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