twitter-bootstrap

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 4 list items that have d-flex class do not respond to .hide()?

天涯浪子 提交于 2020-06-25 07:46:58
问题 When I add class d-flex my Bootstrap 4 <ul> list items do not respond to .hide() anymore, even though style="display: none;" is added to the DOM. The d-flex is used for the Bootstrap 4 list badges. Suggestions? // test 1: regular list, no issue $("#myList li:even").addClass("disabled").hide() // <li class="list-group-item" style="display: none;">First item</li> // test 2: list with badges, no response to hide (class "disabled" still works) // just adding class "d-flex" is sufficient to

bootstrap 4 list items that have d-flex class do not respond to .hide()?

久未见 提交于 2020-06-25 07:45:07
问题 When I add class d-flex my Bootstrap 4 <ul> list items do not respond to .hide() anymore, even though style="display: none;" is added to the DOM. The d-flex is used for the Bootstrap 4 list badges. Suggestions? // test 1: regular list, no issue $("#myList li:even").addClass("disabled").hide() // <li class="list-group-item" style="display: none;">First item</li> // test 2: list with badges, no response to hide (class "disabled" still works) // just adding class "d-flex" is sufficient to

Width of Chosen dropdowns near zero when starting in collapsed Bootstrap accordion

泪湿孤枕 提交于 2020-06-25 07:31:36
问题 When a Chosen dropdown is inside a Bootstrap 3 accordion that's initially hidden , then the width of the dropdown is near zero . After expanding it looks like this: Whereas I expect it to look like this: The problem occurs when the panel-collapse collapse div does not have an in class,effectively indicating it's initially collapsed. Here's the code to reproduce this issue: $(document).ready(function() { $('select').chosen(); }); .panel-heading { cursor: pointer; } body { padding: 10px; }

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 divide bootstrap col-md div to half vertically?

倾然丶 夕夏残阳落幕 提交于 2020-06-25 05:40:09
问题 I am trying to make below layout using bootstrap grid. There is a container <div class="row"> and half width two divs in that ( <div1> and <div2> ). The <div1> 's height would be changeable as content size. And again, the <div2> should have two child divs( <div2-1>, <div2-2> ) that half height of <div1> each. How can I make this layout with Bootstrap grid? I tried like that, but not working. : <div class="row"> <div class="col-md-6" id="div1"> Some content... </div> <div class="col-md-6" id=

Bootstrap shown.bs.tab event not working

拟墨画扇 提交于 2020-06-25 00:56:32
问题 I'm using the Flexy template (using bootstrap) and I can't get the shown.bs.tab event on tab to work. I've managed to make it work on JSFiddle. Here is the code I use in my template that produce nothing : <div role="tabpanel"> <ul class="nav nav-tabs" role="tablist"> <li class="active"><a id="tab1" href="#chart1" role="tab" data-toggle="tab">Tab 1</a></li> <li><a id="tab2" href="#chart2" role="tab" data-toggle="tab">Tab 2</a></li> </ul> <div class="tab-content"> <div class="tab-pane active"

Bootstrap Tooltip - Hide when another tooltip is click

天涯浪子 提交于 2020-06-24 11:02:50
问题 I hope someone can help. I'm trying to hide the tooltip when another tooltip icon is clicked. It works but when I decide to click the last tooltip again it 'flashes' the tooltip. var Hastooltip = $('.hastooltip'); HasTooltip.on('click', function(e) { e.preventDefault(); HasTooltip.tooltip('hide'); }).tooltip({ animation: true }).parent().delegate('.close', 'click', function() { HasTooltip.tooltip('hide'); }); HTML <a href="#" class="hastooltip" data-original-title="Lorem ipsum dolor sit amet,

Bootstrap Tooltip working but hidden due to z-index?

萝らか妹 提交于 2020-06-24 03:05:41
问题 If you hover over the first pencil, you can see the tooltip coming up but it's hidden. How can I tell all tooltips to show up above everything else? Relevant code $('.nav-text').on('click', null, function () { alert('heyo'); }); $('.nav-text').tooltip({ 'placement': 'right', 'title': 'heyo' }); Complete example $('.down').click(function() { var $move = $('.side-study-box ul'); $move.css({ top: '-=20px' }) }) $('.up').click(function() { var $move = $('.side-study-box ul'); $move.css({ top: '+