Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm having a hard time seeing why you're using absolute positioning at all, so if that's necessary for some reason, forgive me. My solution would be to wrap the existing button in a div and then add your custom button into that container. Then you can position your elements inside that container and they'll get pushed down with everything else when the error message comes back.</p> <p>HTML:</p> <pre><code>&lt;H1&gt;Login&lt;/H1&gt; &lt;DL&gt; &lt;P class="err"&gt;Logon Failed&lt;/P&gt; &lt;form action="/cgi-bin/logon/logon" method="POST"&gt; &lt;DT&gt;User ID&lt;/DT&gt; &lt;DD&gt; &lt;input class=" text" type="text" name="userid"/&gt; &lt;/DD&gt; &lt;DT&gt;Password&lt;/DT&gt; &lt;DD&gt; &lt;input class=" password" type="password" name="password" /&gt; &lt;/DD&gt; &lt;DT&gt;&lt;/DT&gt; &lt;DD&gt;&lt;input class="submit" type="submit" name="submit" value="Logon"/&gt; &lt;/DD&gt; &lt;/form&gt;&lt;/DL&gt; </code></pre> <p>CSS:</p> <pre><code>#actionButtons &gt; * { float: left; margin-right: 2px; } #actionButtons:after { content: ""; clear: both; display: block; } </code></pre> <p>jQuery (wrapped in DOM ready function):</p> <pre><code>$(function(){ $('.submit').wrap('&lt;div id="actionButtons"/&gt;'); $('#actionButtons').append($('&lt;div class="circle circlealign"&gt;i&lt;/div&gt;')); }); </code></pre> <p><strong>UPDATE</strong> - Circle CSS:</p> <pre><code>.circle { display: block; width: 30px; height: 30px; border-radius: 15px; background: #d1d1c9; box-shadow: 1px 1px 2px #000; opacity: 0.95; font: italic bold 2em/1em "Times New Roman"; text-align: center; color: #000; text-shadow: 0 1px 0 #666; text-decoration: none; } </code></pre> <p>Here's a demo: <a href="http://jsfiddle.net/ebTS2/1/" rel="nofollow">http://jsfiddle.net/ebTS2/1/</a></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.
 

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