Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It seems rather impossible to style a single popover, and - as Sara mention - there is no such option as <code>offset</code> (you may think of qtip?). However, you can use the undocumented option <code>template</code>, "derived" from the <code>tooltip</code> options (in fact, popover only introduces <code>content</code>). </p> <p>By modifying <code>template</code> you can individually style each popover! It seems to me your problem is the <code>arrow</code> more than the popover itself, so you can try to move the arrow up or down from the middle, simply by adding a style for arrow to the template, like this </p> <pre><code>$('label').hover(function() { $(this).popover({ placement: 'left', template: '&lt;div class="popover"&gt;&lt;div class="arrow" style="top:65px;"&gt;&lt;/div&gt;&lt;div class="popover-inner"&gt;&lt;h3 class="popover-title"&gt;&lt;/h3&gt;&lt;div class="popover-content"&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;' }).popover('show'); }); </code></pre> <p>of course, here the arrows for all popovers set for all labels will be modified due to the <code>$('label').hover</code>, but popovers can be styled individually without CSS if you want, those without radio buttons may not need to.</p> <p>UPDATE - style the whole popover +10px to the left</p> <pre><code>... template: '&lt;div class="popover" style="margin-left:-10px;"&gt;&lt;div class="arrow"&gt;&lt;/div&gt;&lt;div class="popover-inner"&gt;&lt;h3 class="popover-title"&gt;&lt;/h3&gt;&lt;div class="popover-content"&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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