I have been experiencing issues with the row and col classes in Bootstrap.
<!DOCTYPE html>
<html lang="en>
<head>
<meta charset="utf-8>
<meta http-equiv="X-UA-Compatible" content="IE-edge>
<meta name="viewport" content="width-device-width,initial-scale=1>
<link href="assets/css/bootstrap.min.css" rel="stylesheet>
</head>
<body>
<div class="container>
<div class="row ">
<div style="background: cyan" class="offset-md-2 col-md-8>
<h1 style="color: red">Login</h1>
</div>
</div>
<form method="post" action="login>
<div class="row" style="background: lightblue; height: 300px; width:500px;">
<div class="col-md-12>
<div class="col-md-4>Select Type:</div>
<div class="col-md-8>
<select name="user_type" ad="user_type>
<option value="0">Select Type</option>
<option value="Admin" name="admin" id="admin">Admin</option>
<option value="Teacher" name="teacher" id="teacher">Teacher</option>
<option value="Parent" name="parent" id="parent">Parent</option>
</select> </div>
</div>
<div class="col-md-12>
<div class="col-md-4>User Name:</div>
<div class="col-md-8><input type="text" name="user_name" id="user_name" maxlength="63> </div>
</div>
<div class="col-md-12>
<div class="col-md-4>Password:</div>
<div class="col-md-8><input type="password" name="password" id="password" </div>
</div>
<div class="col-md-5><input type="submit" class="btn btn-primary" name="submit> </div>
<div class="col-md-offset-2 col-md-5><input type="reset" class="btn btn-danger" name="reset> </div>
</div>
</form>
</div>
</body>
</html>
When I input text in the "Select Type" field, it displays in two rows along with the select option. I would like the text and input field to be in a single row instead of two. Can anyone offer a solution to this issue?