I've encountered a strange issue where datetime-local
inputs exceed their boundaries on Chrome (tested on Chrome 35 x64 for Linux), but not on Firefox (29.0). Here's a screenshot demonstrating the problem in Chrome:
And here's how it appears in Firefox:
Here is the relevant HTML code snippet:
<div class="container-fluid">
<div class="row">
<div id="filter-panel" class="col-md-3">
<ul class="list-group">
<!-- Filter by time -->
<li class="list-group-item">
<h4>Filter by Time</h4>
<div class="input-group">
<span class="input-group-addon">Oldest</span>
<input type="datetime-local" class="form-control" id="log-filter-early-time">
</div>
<div class="input-group">
<span class="input-group-addon">Newest</span>
<input type="datetime-local" class="form-control" id="log-filter-late-time">
</div>
</li>
<!-- more li elements -->
No additional CSS styling except for Twitter Bootstrap has been applied. I am using the latest version of Bootstrap that was downloaded just a few days ago.
How can I ensure that the input fields stay within their respective divs? While I want them to occupy the entire width, I do not want them to extend beyond it. Additionally, is there a way to make the spans with .input-group-addon be the same width without assigning fixed pixel values? Attempting to set their width as a percentage did not yield any results.