I'm struggling to insert text on the left side of an input field and beneath a label.
Working with Bootstrap 4.3.1, my HTML code appears as follows:
<div class="col-lg-6 col-md-6 col-sm-6">
<!-- some markup in here -->
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="row">
<label>Sensor URI:</label>
http://<input value="" type="text" id="sensor_uri" min="15" max="1440" class="form-control" required/>
</div>
</div>
This layout resembles the following:
https://i.sstatic.net/gRdJD.jpg
I've experimented with enclosing "http://" in various elements (such as <p>
, div>
, etc.) but have had no success. The desired outcome is to have "http://" in front of the input field, preventing the user from editing it, similar to this illustration:
https://i.sstatic.net/9QhuM.jpg
What would be the correct approach to achieve this?