Ich habe mit Eingabefeld und Text divText mit Eingabe in einer Zeile
Hier Code
.form-control {
display: block;
width: 100%;
height: 34px;
position: relative;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
margin: 0 auto;
background-color: #fff;
border-color: #1f66b4;
border-style: solid;
border-width: 3px;
background-image: none;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
<div style="width:50%;height:100%;float: left;padding-left:20%">
<form style="text-align:center;">
<b>dfsdfsdfsdf</b>
<input type="text" class="form-control" id="lname" name="lname" placeholder="Last Name" style="margin: 30px auto 0;border-radius:50px;border-width: 1px;">
</form>
</div>
Aber Text ist über Eingang.
ich brauche, um Text in einer Reihe mit dem Eingang zu machen. Wie kann ich das tun?
Flexbox, Schwimmern, Tabellen, die absolute Positionierung ... – domsson
https://codepen.io/anon/pen/RgBxqq scheint hier in Ordnung. Ich denke, wir müssen mehr darüber wissen, wo du das machst. –
Sie Code funktioniert bereits: https://jsfiddle.net/5kmLszv6/ Haben Sie weitere Informationen zu Ihrem Problem? – chrona