Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy the closing button on the jQuery dialog is moved to the left while integrating with a Web Page?
    primarykey
    data
    text
    <p>I have a simple script for a dialog that basically works:</p> <pre><code>&lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $(function () { $("#dialog").dialog(); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body"&gt; &lt;div id="dialog" title="Message"&gt; &lt;p&gt;Hello! Did you know you could save 2%&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>However, integrating it onto some web sites sometimes does not work well. Please see the difference on the link: <a href="http://www.jboston.net/2013/Message1.png" rel="nofollow">http://www.jboston.net/2013/Message1.png</a> How to fix moving the closing button to the left?</p> <p>Firebug shows the following code for the button:</p> <pre><code>&lt;button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close" style="margin-right: 328.5px;"&gt;&lt;span class="ui-button-icon-primary ui-icon ui-icon-closethick"&gt;&lt;/span&gt;&lt;span class="ui-button-text"&gt;close&lt;/span&gt;&lt;/button&gt; </code></pre> <p>All styles are from jquery-ui.css except one style coming from HTML: "margin-right: 328.5px;"</p>
    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