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;  } 

jsfiddle


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -