Hey there, I'm facing an issue with form handling in Bootstrap. Any suggestions to solve it?
The problem lies with the spacing of elements, and unfortunately, I haven't been able to find a suitable solution yet. I've experimented with horizontal forms, but that ends up pushing the spans onto a new line. Currently using Gentella theme.
<body>
<div id="wrapper">
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Calculator
</h1>
<!-- <ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="index.html">Dashboard</a>
</li>
<li class="active">
<i class="fa fa-edit"></i> Forms
</li>
</ol> -->
</div>
</div>
<form class="form-inline" action="/calculator.php">
<div class="form-group">
<label class="control-label" for="input1_nm">Enter first value:</label>
</div>
<div class="form-group">
<input type="text" class="form-control" id="input1_nm" placeholder="20">
</div>
<div class="form-group">
<span>/nm</span>
</div>
<div class="form-group">
<select class="form-control">
<option>2</option>
<option>4</option>
<option>6</option>
<option>8</option>
<option>10</option>
</select>
</div>
<div class="form-group">
<span>/cm</span>
</div>
<div class="form-group">
<select class="form-control">
<option>Normal</option>
<option>Graphite</option>
<option>Rockwool</option>
</select>
</div>
<div class="form-group">
<span>Type</span>
</div>
</br>
</br>
<div class="form-group">
<label class="control-label" for="other_input">Other input:</label>
<input type="text" class="form-control" id="other_input" placeholder="20">
</div>
<div class="form-group">
<span>/nm</span>
</div>
<div class="form-group">
<select class="form-control">
<option>2</option>
<option>4</option>
<option>6</option>
<option>8</option>
<option>10</option>
</select>
</div>
<div class="form-group">
<span>/cm</span>
</div>
<div class="form-group">
<select class="form-control">
<option>Normal</option>
<option>Graphite</option>
<option>Rockwool</option>
</select>
</div>
<div class="form-group">
<span>Type</span>
</div>
</br>
</br>