I created a drop down menu and a input box form using the following code:
<div class="container-fluid">
<div class="dropdown">
<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
2
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-info" aria-labelledby="dropdownMenu1">
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
</ul>
</div>
<input type="text" name="" value="">
</div>
The css I applied is:
body {
background-color: #b6e6bd;
line-height: 1.6;
}
/* Containers */
.container-fluid {
padding: 1% 20%;
margin: auto;
text-align: center;
}
However, the drop down menu is taking up the full width of the website and the blank input box is showing up on the same line. I did not do anything to style the buttons. Can someone pls help, I need them to appear on the same line.
