iam trying to do this
DIV
FORM
DIV
LABEL INPUT HINT
so if i put my mouse over INPUT than a hint should pop up.
<div id = "right_login">
<form id='login' action='login.php' method='POST'>
<div class="outer_hint">
<label>Username:</label>
<input type="text" name="username" id="login_username" class="field" value="" />
<!-- HINT --><p class="hint">6 to 20 characters(letters and numbers only)</p>
</div>
</form>
</div>
so i used css on this div. first i hide the <P> hint.
than i set hover over. so hint should pop up.
/**** hint *****/
.hint
{
display:none;
}
.outer_hint:hover .hint
{
display:inline;
position:absolute;
display:block;
margin:-45px 0 0 335px; /* postion of hint*/
font-size:15px;
color:white;
padding:7px 10px;
background:rgba(0,0,0,0.6);
border-radius:7px;
-moz-border-radius:7px;
-webkit-border-radius:7px;
}
this works find. hind does pop up when i hover over input or label.
but the problem is in postion. i can never seem to get the right postion!
so here is what its doing
|LABEL| |INPUT|
|HINT|
iam not sure why hint is displaying at bottom.