Note that there are some explanatory texts on larger screens.

plurals
  1. POAlignment issue with navigation menu for jquery ui tabs
    primarykey
    data
    text
    <p>I am currently struggling as the title for this question mentions: centering the menu tabs according to the width of the tab content. Also i am not sure why there is a gap between the content and the menu tab. </p> <p>Question: Why is the menu not adapting to the width of the tabs content?</p> <p><a href="http://google.com" rel="nofollow noreferrer">LIVE EXAMPLE</a></p> <p><img src="https://i.stack.imgur.com/rXEzK.png" alt="enter image description here"></p> <p>CSS jquery ui- tabs.css</p> <pre><code>&lt;style&gt; #page-wrap { width: 675px; margin: auto; background:#FFF;} .ui-tabs { zoom: 1; } .ui-tabs .ui-tabs-nav { list-style: none; position: relative; overflow: hidden; z-index: 1000; } .ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; background: #EBEBEB; } .ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: 5px 10px ; outline: medium none; font-weight: bold; font-size:11px; line-height: 35px;} .ui-tabs .ui-tabs-nav li.ui-tabs-selected { border-bottom-width: 0; background: #F9AE5C; color: #6A6A6A; border-top:1px solid #D4D4D4; border-left:1px solid #D4D4D4; border-right:1px solid #D4D4D4; } .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ .ui-tabs .ui-tabs-panel { padding: 20px; display: block; border-width: 0; background: none; position: relative; min-height: 100px; border: 1px solid #D4D4D4; } .ui-tabs .ui-tabs-hide { display: none !important; } .pngIcon{ padding:0px 5px 0px 5px; vertical-align:top;} a.mover { background: #900; padding: 6px 12px; position: absolute; color: white; font-weight: bold; text-decoration: none;} .next-tab { bottom: 0; right: 0; -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; } .prev-tab { bottom: 0; left: 0; -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; } &lt;/style&gt; </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.
 

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