html - Inline Display Will Not Position -
ive been working on trying simple "login" form displayed vertically , position well. seems can 1 or other, never both. ive tried different ways of doing neither worked out, had last.
html
<form class = "login"> e-mail: <input type="text" name="id" maxlength="30" value="" /> password: <input type="text" name="pw" maxlength="30" value="" /> <input type="submit" name="submit" value="login" /> </form> css
login { position:absolute; top:10px; left:185px; } login.input { display: inline; }
right css targeting <login> element in dom , <login> element class of input. believe trying target class of login , element's inside form class of login. try modifying css so:
.login { position:absolute; top:10px; left:185px; } .login input { display: inline; }
Comments
Post a Comment