Note that there are some explanatory texts on larger screens.

plurals
  1. POAllign elements close enough
    primarykey
    data
    text
    <p>i need to allign element under RED arrow right under the element where BLACK arrow is pointed at. In other words how do i allign element close enough to input like 2-5px.</p> <p><a href="http://i.stack.imgur.com/Q4IeX.png" rel="nofollow">http://i.stack.imgur.com/Q4IeX.png</a></p> <p>code is here</p> <p>CSS</p> <pre><code> form.loginform { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; border-radius: 10px; -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5); -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); } div.divbg { width: 200px; height: 167px; position: fixed; text-align: center; vertical-align: middle; margin-top: 30%; margin-left: 40%; background-color: aliceblue; } a.register { font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 11px; } #pass { float: inherit; margin: 0; } </code></pre> <p>HTML</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;link rel=StyleSheet href="loginstyle.css" type="text/css" media="screen"/&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="divbg"&gt; &lt;form method="post" class="loginform"&gt; Логин &lt;div class="center"&gt;&lt;input type="text" name="login"/&gt;&lt;/div&gt;&lt;br/&gt; &lt;div id="pass"&gt;Пароль &lt;div class="center"&gt;&lt;input type="text" name="password"/&gt;&lt;/div&gt;&lt;br/&gt; &lt;a href="#" class="register"&gt;хочу зарегистрироваться!&lt;/a&gt;&lt;br/&gt;&lt;/div&gt; &lt;input type="submit" name="submit" value="Войти"/&gt;&lt;br/&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&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. 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