У меня возникли проблемы с выравниванием двух полей ввода на одной строке, всякий раз, когда я плаваю один вправо, он сразу же подталкивает его к следующей строке.Как выровнять два поля ввода на одной и той же строке, но заканчивается
Как я могу иметь два поля ввода на ту же линию, один слева и один выровненные вправо без его толкнули к следующей лин
.inline
{
display: inline;
}
input
{
width:15%;
font-weight:bold;
background-color:transparent;
border: 1px solid;
font-size: 13px;
font-family: Arial;
}
html
{
height: 100%;
margin-bottom: 0px;
}
* {
margin: 0;
}
.body {
font-family: Arial;
font-size: 13px;
background-color: #ffffff;
margin-top:0px;
margin-left:10%;
margin-right: 10%;
margin-bottom: 0px;
padding:0
height: 100%;
line-height: 200%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
line-height: 120%;
height: 112px; /* .push must be the same height as .footer */
text-align: center;
font-size: 10px;
}
<body>
<div class="body">
<div class="wrapper">
<span class="inline">
<input class="inputbold" type="text" name="" placeholder="boldinput" />
<div style="text-align: right;">
<input class="inputbold" type="text" name="" placeholder="blah"/> </div>
</span>
</div>
</div>
'дисплей: встроенный;' на оба, 'поплавок: left' на одном,' поплавок: right' на других и некоторых разумных ширинах, установленных на оба, 'дисплей: table' на контейнере, а затем 'display: table-cell' на обоих и множество других способов. У вас там беспорядок. –
Typo в последнем CSS-селекторе '.footer, .push {' – j08691