I would like to line up the elements from the business hours label to the second time input even if the screen becomes smaller, but it doesn't work.If you turn down the screen, the label and input text boxes will line up vertically.Could you tell me how to correct it?
[Code]
<!DOCTYPE html>
<html lang="ja">
<head>
<metacharset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Ayeo Shop </title>
<link href="css/bootstrap.min.css"rel="stylesheet">
<link type="text/css"rel="stylesheet" href="css/bootstrap-timepicker.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-timepicker.min.js"></script>
</head>
<body>
<div class="container">
<p> Ayeo Shop </p>
<p>Address: Chiyoda Ward, Tokyo;/p>
<form class="form-inline">
<div class="form-group">
<label class="control-label" for="businesshours">business hours:</label>
<div class="input-group bootstrap-timepicker timepicker" style="width:110px">
<input type="text" id="businesshours" class="form-control input-small timepicker1">
<span class="input-group-addon"><ic class="glyphicon glyphicon-time">/i>>/span>
</div>~
<div class="input-group bootstrap-timepicker timepicker" style="width:110px">
<input type="text" class="form-control input-small timepicker1">
<span class="input-group-addon"><ic class="glyphicon glyphicon-time">/i>>/span>
</div>
</div>
</form>
</div>
<script type="text/javascript">
$('.timepicker1').timepicker({
showMeridian: false
});
</script>
</body>
</html>
.form-inline.input-group{
display:inline-table;
vertical-align:middle;
}
The above CSS works when lining up side by side, so it works even if you write it outside of the media query, but it doesn't work if it affects anything else, so
.input-group.timepicker{
display:inline-table;
vertical-align:middle;
}
How about this kind of designation?
572 Understanding How to Configure Google API Key
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
599 GDB gets version error when attempting to debug with the Presense SDK (IDE)
886 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.