navbar

Bootstrap Nested Navbars - control over “active” class

放肆的年华 提交于 2019-12-24 17:47:54
问题 I have almost got a nested Bootstrap menu working exactly as I want it. The menu is on two levels. The top are major menu categories, the bottom sub-categories. Selecting a major menu will turn that menu heading active and open up the appropriate sub-category, with no subcategory selected at this time. When the user selects a sub-category [for example, they select About 2 below] then that menu element is selected. My problem is that when a user does this the major category element is de

How to Create Dropdown Navbar Menu Item in Layout.CSHTML in ASP.NET

倖福魔咒の 提交于 2019-12-24 14:58:06
问题 I am new to ASP.NET and I am trying to figure out how to create a nav bar menu items with drop down capability. I am using this theme in particular. In their sample code they demonstrate the drop down functionality, but in my default MVC application I am using _Layout.cshtml to create my nav bar. I am having difficulty figuring out the correct syntax. I have implemented section s within my Index.cshtml page which I would like the first nav bar menu item drop downs to go to accordingly. How

Bootstrap navbar with variable and fixed width buttons?

雨燕双飞 提交于 2019-12-24 12:33:45
问题 I'm trying to make a navbar with Bootstrap that has a brand logo on the left, a couple of variable width links in the middle, and some fixed width buttons on the right. I want everything on one line, and the variable width buttons to just fit in whatever space is available. See here: https://jsfiddle.net/wfu6yxqd/ the 2 fixed width buttons should be to the right of the variable width links I don't need Bootstrap's built in navbar collapse behaviour so not needed in my navbar definition (I am

Change background colour of navbarPage menubar in R shiny

你说的曾经没有我的故事 提交于 2019-12-24 07:42:08
问题 In R Shiny, I would like to change the background colour of the navbar menu. I would like to change the colour everywhere on the menu bar (including the colour of the buttons when hovering over them, or when they're inactive, etc.), except for the font, to one colour (black). However, I do not wish to change any other default colours, such as the background colour of the main part of the page. I've attempted to do so by creating a CSS file as follows: body, #selector, .container, .navbar

Cannot get centered logo to reposition to the right on collapse

浪子不回头ぞ 提交于 2019-12-24 07:07:08
问题 I am having trouble getting the logo to stay in the top right side of the navbar on collapse. See images for issue. Collapsed content Navbar before collapse Code for review: <nav class="navbar navbar-expand-md fixed-top navbar-light blue-grey lighten-5 mx-auto"> <div class="container"> <!-- Collapse Button --> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mobileNav" aria-controls="mobileNav" aria-expanded="false" aria-label="Toggle navigation"> <span class=

Bootstrap 4 Navbar <li> List

久未见 提交于 2019-12-23 23:53:33
问题 I need some help with the bootstrap Navbar (Bootstrap v4.0.0-beta.3). What do I have to change so that the button text is single-line and not among each other. When the line is full, the other buttons should start on the left of the next line. Currently I use this code: <nav class="navbar navbar-expand-lg navbar-light bg-secondary"> <div class="container"> <div class="row w-100 no-gutters d-lg-block d-flex flex-wrap justify-content-between"> <a class="navbar-brand col-lg-3 col-7 py-lg-3 order

How to hide nav-bar with tabs in Ionic 2?

混江龙づ霸主 提交于 2019-12-23 13:27:32
问题 How to hide nav-bar with tabs in Ionic 2? I only want to hide it in one of the pages excluding others. <ion-navbar *navbar > <ion-title>Item Details</ion-title> </ion-navbar> I have tried hide-nav-bar="true" but it does not work. 回答1: From a tab page you can do: this.nav.parent.parent.setRoot(LoginPage); Before: Nav -> Tabs -> somepage After: Nav -> LoginPage Nav is the root of all nav stacks in Ionic 2 Also, a modal works well for a situation where you want to show a list item's detail in a

Disable dropdown on hover for bootstrap when navbar is collapsed

青春壹個敷衍的年華 提交于 2019-12-23 09:17:41
问题 I have implemented the css as shown here: How to make twitter bootstrap menu dropdown on hover rather than click However want to disable the dropdown on hover when the navbar collapses as it acts a bit buggy. How can I do it? 回答1: You could try wrapping the CSS to disable the dropdown in a media query so that it is only disabling it at a certain page width... Reading up on media queries and trying to understand how bootstrap implements them is going to be one the keys to debugging this. Here

bootstrap navbar collapse working on computer not on iphone

我的未来我决定 提交于 2019-12-23 09:09:50
问题 My fixed navbar works fine when I resize my computer screen to below 980px. Once my screen is 979px or less the navbar collapse kicks in and works perfectly. However, when I push code up to Heroku and load the site on my iPhone 4S, not only does my navbar not collapse, but it looks a bit different -- the float right drops underneath the logo causing it to look weird. Here is my custom.css.scss file: @import "bootstrap"; @import "bootstrap-responsive"; /* universal */ html { overflow-y: scroll

Creating a footer inside a bootstrap column

半腔热情 提交于 2019-12-23 07:37:52
问题 I'm using this bootstrap template here to create a page for my app. In the center column (col-sm-7), where I will have a form, I want to create a footer/navbar/area at the bottom, that's fixed to the bottom, so that I can add buttons (ex. save, next, back). I'm trying different things like a footer element, a bootstrap navbar with 'navbar-fixed-bottom' and a plain row with a div in it with a style where the bootom is 0 and the position is fixed, but none seem to be working correctly. The