Я хотел бы получить макет формы, как показано ниже
https://jsfiddle.net/May_Y/6w9nd73c/20/
<form id="cat_select" class="form-inline">
<input class="c" name="c" id="c" type="text" style="width:10%"><br><br> Select any below:<br><br>
<input class="l0" name="l0" id="l0" type="text" style="width:30%">
<input class="l1" name="l1" id="l1" type="text" style="width:30%">
<input class="l2" name="l2" id="l2" type="text" style="width:30%">
<input class="l3" name="l3" id="l3" type="text" style="width:50%">
<input class="l4" name="l4" id="l4" type="text" style="width:50%">
<input class="l5" name="l5" id="l5" type="text" style="width:100%">
<input class="l6" name="l6" id="l6" type="text" style="width:100%">
<br>
<input `id="query" class="form-control mr-sm-2" type="query" placeholder="optional input" aria-label="query" name='query' value="" style="width:50%">
<select id="mySelect">
<option value="" disabled selected>Sort by</option>
<option>1</option>
<option>2</option>
</select><br><br>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit" id="cat_submit">Submit</button>
</form>
но если я добавлю бутстрап, <br>
больше не будет работать.
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
<form id="cat_select" class="form-inline">
<input class="c" name="c" id="c" type="text" style="width:10%"><br><br> Select any below:<br><br>
<input class="l0" name="l0" id="l0" type="text" style="width:30%">
<input class="l1" name="l1" id="l1" type="text" style="width:30%">
<input class="l2" name="l2" id="l2" type="text" style="width:30%">
<input class="l3" name="l3" id="l3" type="text" style="width:50%">
<input class="l4" name="l4" id="l4" type="text" style="width:50%">
<input class="l5" name="l5" id="l5" type="text" style="width:100%">
<input class="l6" name="l6" id="l6" type="text" style="width:100%">
<br>
<input `id="query" class="form-control mr-sm-2" type="query" placeholder="optional input" aria-label="query" name='query' value="" style="width:50%">
<select id="mySelect">
<option value="" disabled selected>Sort by</option>
<option>1</option>
<option>2</option>
</select><br><br>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit" id="cat_submit">Submit</button>
</form>
Я пробовал с <br style="clear: both;">
, но он также не работает. Как я могу получить нужный формат с помощью начальной загрузки.
Я бы хотел, чтобы только id="query"
и id="mySelect"
имели другой цвет фона. Это возможно?
Спасибо.