In my current project, I am developing a form using Bootstrap4 with specific design requirements. Despite researching extensively on Bootstrap4 documentation and implementing various strategies like using tags, I have not achieved the desired outcome.
Below is the code snippet that I have been working on:
Mypage.html
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<div class="form-container">
<form>
<div class="form-group row">
<label for="inputPhone" class="col-sm-2 col-form-label">Phone</label>
<div class="col-sm-10">
<input type="number" class="form-control box" id="inputPhone" placeholder="Phone Number">
</div>
</div>
<div class="form-inline">
<label class="mr-sm-2">Bio</label>
<div class="circle">i</div>
<label for="inputBio" class="mr-sm-2"></label>
<div class="col">
<textarea class="form-control bio-text" id="inputBio" rows="3" placeholder="Your Bio"></textarea>
</div>
</div>
</form>
</div>
CSS Code
.form-container { max-width: 449px }
.box { margin-left: 82px }
.bio-text { height: 91px; margin-left: 28px }
input[type="number"] {border: 2px solid #b1b1b1; padding: .55rem .75rem}
textarea {border: 2px solid #b1b1b1; padding: .55rem .75rem}
.circle { width: 22px; height: 22px; border-radius: 50%; color: white;
line-height: 20px; text-align: center; background: rgb(162, 197, 252); margin-left: 50px}
I have also provided a link to the live code demonstration on JSFiddle here: JSFiddle code for the form
Despite my efforts, the displayed output in my browser does not match the desired design. 🙏🏼 Any guidance or assistance from more experienced individuals would be immensely appreciated as I am relatively new to web development and still learning the ropes of Bootstrap4. Thank you!