twitter-bootstrap-3

Set Leaflet map to height: 100% of container

泄露秘密 提交于 2020-07-18 05:40:15
问题 Please how can we set the map div to be height: 100% of its container? I have tried this within a bootstrap template content section, but all I get is height of 0px. Even Google-Dev tools shows #map height as 0px. body { padding: 0; margin: 0; } html, body, #map { height: 100%; } 回答1: Set #map{ position: absolute; top: 0; bottom: 0; width: 100%; } and give its container position: relative . 回答2: The above answer didn't work for me, but this did: body { padding: 0; margin: 0; } html, body,

How to remove margin-left and margin-right of col class in bootstrap?

孤街醉人 提交于 2020-06-28 07:20:46
问题 I am new to bootstrap. I put 3 images side by side but they are not adjacent. There is a margin between them. This is picture I want to eliminate the margins so that the images are adjacent. The center image size is 1200x400 and both left and right images size is 600x400. And also I've used img-responsive class. what is the actual problem? Here is the code <div class="container"> <div class="row"> <div class="col-sm-3"> <asp:Image CssClass="img-responsive" ImageUrl="images/right.jpeg" runat=

How to force hamburger menu in Bootstrap 3.3.7 even for Desktop?

丶灬走出姿态 提交于 2020-06-25 08:07:31
问题 My code looks the same as this page: https://getbootstrap.com/docs/3.3/examples/navbar/ When I open the page in mobile, it looks like this: But when I open it on Desktop, it looks like this: How can I force the page to look the same on Desktop as it does on Mobile? i.e. I want a hamburger menu on the desktop version of the site. Things I have tried I set a max-width=480px on the outer div on the page, but that didn't help. I have also posted a related question on the softwarerecs SE (https:/

bootstrap navbar toggle button is not working

白昼怎懂夜的黑 提交于 2020-06-25 07:04:09
问题 I'm working on a responsive wordpress theme with Bootstrap v3.0.2. In mobile/tablet browsers instead of the whole menu i need to show the Bootstrap toggle button. My button is showing, but when I click on it nothing is happening. This is code I wrote in my header.php : <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon

bootstrap navbar toggle button is not working

♀尐吖头ヾ 提交于 2020-06-25 07:03:50
问题 I'm working on a responsive wordpress theme with Bootstrap v3.0.2. In mobile/tablet browsers instead of the whole menu i need to show the Bootstrap toggle button. My button is showing, but when I click on it nothing is happening. This is code I wrote in my header.php : <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon

how to set column classes for different screen sizes using bootstrap

对着背影说爱祢 提交于 2020-06-16 04:27:33
问题 Except for small screens, I would like the text and the number to be side-by-side, but it isn't happening. <div class="container-fluid"> <div class="row"> <div class="col-sm-3 col-md-3 col-lg-3"> <label>No. Of Submissions</label> </div> <div class="col-sm-9 col-md-9 col-lg-9"> 23876 </div> </div> For 1280 X 600 - they are side by side. For 980 X 1280 - they are one below the other. For 800 X 1280 - they are one below the other. For 768 X 1024 - they are one below the other. For 360 X 640-

django modelform with bootstrap

放肆的年华 提交于 2020-06-11 11:46:10
问题 I want to format my modelforms with bootstrap, and without any additional packages (just using the bootstrap source files). A particular form that I want configured: class FoodForm(forms.ModelForm): class Meta: model = Food fields = ['name', 'company'] exclude = ('user', 'edit') The 'name' is a text field I'd want to be a bootstrap text field, and 'company' is a selection field (from a foreign key) that I'd want to be a bootstrap dropdown. The current setup of the form template: {% extends

django modelform with bootstrap

独自空忆成欢 提交于 2020-06-11 11:46:07
问题 I want to format my modelforms with bootstrap, and without any additional packages (just using the bootstrap source files). A particular form that I want configured: class FoodForm(forms.ModelForm): class Meta: model = Food fields = ['name', 'company'] exclude = ('user', 'edit') The 'name' is a text field I'd want to be a bootstrap text field, and 'company' is a selection field (from a foreign key) that I'd want to be a bootstrap dropdown. The current setup of the form template: {% extends

Bootstrap form input css like MS-Excel

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-09 18:43:26
问题 I am using Bootstrap 3.0 in my project. I want my form fields look like MS-Excel cell. What is the css for this? This is form's current look And code : <div class="row"> <div class="col-md-2"><label>Transport Charges</label><input value="" class="form-control text-right" name="p_Frieght" id="p_Frieght"></div> <div class="col-md-2"><label>Discount</label><input value="" class="form-control text-right" name="p_Discount" id="p_Discount"></div> <div class="col-md-2"><label>RoundOff</label><input

How can I capitalize the first letter of each word in CSS?

僤鯓⒐⒋嵵緔 提交于 2020-06-08 10:34:03
问题 I am trying to capitalize the first letter of each word. I did search for it but i did not get it, is it possible in CSS? My Code currently works for the first letter only. HTML <span>Some Text Value</span> CSS .listing-table table th:first-letter { font-size: 15px; font-weight: bold; } 回答1: You can try to use this: p { text-transform: capitalize; } From the docs: text-transform This property controls capitalization effects of an element's text. capitalize Puts the first character of each