navbar

Creating Small Navbar and a side panel in Materialize css

你说的曾经没有我的故事 提交于 2019-12-03 22:46:09
I am using materialize css for my new project. I have a simple mock up of the page I have in mind. This is what I would like to have. The navbar above and a side panel shouldn't hide. I have tried changing the css of materialize to get a side navbar, but to no avail. I changed the @media only screen and (max-width: 992px) { .side-nav.fixed { -webkit-transform: translateX(-105%); transform: translateX(-105%); } to @media only screen and (max-width: 2000px) { .side-nav.fixed { -webkit-transform: translateX(-105%); transform: translateX(-105%); } I also tried to change the .js file, but it also

Fading bootstrap navbar on scrolldown, while changing text color

六眼飞鱼酱① 提交于 2019-12-03 21:33:25
so I'm working on a Ruby on Rails app with a design given to me which calls for the navigation bar to be transparent at the top of the page, and then fade into solid white after scrolling down past a certian <section> on the page, at the same time, the navbar link text is white at the top, and will fade to grey at the same <section> . I've looked into JavaScript that changes opacity on scrolldown, but I haven't had success getting it to work. I'd imagine that the same function(s) to fade in the navbar to white, would also work with the navbar links fading to grey as well. I've also looked into

How can I use Bootstrap navbar in ngx-bootstrap for Angular 5?

匆匆过客 提交于 2019-12-03 18:34:20
问题 Bootstrap navbar doesn't exist in the ngx-bootstrap components list. Please help me to implement it. 回答1: There's no implementation of navbar as a separate component but it can be done with Collapse Module. Example = https://stackblitz.com/edit/ngx-bootstrap-rc8ab4?file=app%2Fapp.component.ts MODULE // App imports import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { CollapseModule } from

Best way to use Bootstrap 3 Navbar without responsive collapse

佐手、 提交于 2019-12-03 17:58:05
问题 I'm trying to create a simple Navbar in Bootstrap 3 that doesn't collapse - responsive isn't necessary here because we just have a simple title on the left + button on the right. My goal is to have the title + buttons always appear the same for all resolutions. Something like this: <div class="navbar navbar-fixed-top"> <form class="navbar-form navbar-right"> <button class="btn btn-default">Button 1</button> <button class="btn btn-default">Button 2</button> </form> <a class="navbar-brand" href

Replace background in Twitter Bootstrap navbar for IE

偶尔善良 提交于 2019-12-03 16:59:40
I am trying to replace the background image for a Twitter Bootstrap navbar with my own image. It works in Chrome, Firefox, and Safari but not in Internet Explorer. What am I missing for IE? (It remains the plain black in IE) .navbar.navbar-inverse.navbar-fixed-top .navbar-inner { background: url(/assets/navbar.png) repeat-x; box-shadow: none; border: none; -webkit-box-shadow: none; } You need to add this: filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); 来源: https://stackoverflow.com/questions/14088485/replace-background-in-twitter-bootstrap-navbar-for-ie

yii2 navbar with dropdown

早过忘川 提交于 2019-12-03 16:21:11
问题 After some simple edit on the default navbar, I got the code for the menu below... It would be very ugly if I add more menus. <?php NavBar::begin([ 'brandLabel' => 'My Project', 'brandUrl' => Yii::$app->homeUrl, 'options' => [ 'class' => 'navbar-inverse navbar-fixed-top', ], ]); $menuItems = [ ['label' => 'Home', 'url' => ['/site/index']], ['label' => 'Contact', 'url' => ['/site/contact'],'visible'=>false], ]; if (Yii::$app->user->isGuest) { $menuItems[] = ['label' => 'Signup', 'url' => ['

How can we programmatically select a tab in Nav bar of JQuery Mobile

若如初见. 提交于 2019-12-03 16:17:28
How can we programmatically select a tab in Nav bar of JQuery Mobile? I tried the below code to do that. But of no use. var tabButton = document.getElementById("tabId2"); tabButton.className = "ui-btn-active"; UPDATE: Please Check this: http://jsfiddle.net/YnxML/15/ UPDATE: Following is the code I have used to develop a Navigation bar at the footer. <div data-role="page" data-theme="b" id="option-page"> <div data-role="footer" data-id="foo1" data-position="fixed"> <div data-role="navbar"> <ul> <li><a href="#" id ="tabId1"onclick="method1();" >1</a></li> <li><a href="#" id ="tabId2" onclick=

use intro.js on bootstrap dropdown element

雨燕双飞 提交于 2019-12-03 14:53:20
问题 I cannot figure out how to use intro.js on dropdown elements. I found a similar question with no answer there: IntroJS Bootstrap Menu doesnt work If you want to reproduce the error, follow these steps: http://recherche.utilitaire.melard.fr/#/carto You have to click on "Aide" (The green button on the top right), the problem occurs for the second step. on the change event, I do: $scope.ChangeEvent = function (e) { if (e.id === 'step2') { document.getElementById('step1').click(); } console.log(

nav bar wrapping on smaller resolutions

荒凉一梦 提交于 2019-12-03 13:55:24
I'm trying my hand at HTML5/CSS3 as a learning process but I'm struggling to create a navigation bar for links to other sections across my pages. I adapted the code from a tutorial found and it works but only when viewed on a resolution of 1080p, if the width is smaller, the bar wraps onto other lines. How do I ensure that the nav bar only takes up one line (shrinks to fit) no matter what resolution the user is using? Here is my CSS code for the nav bar. Please note, under nav i have set width to 33.3% and padding to the same in order to centre the buttons. I don't know if this is the cause.

position:sticky is not working

落花浮王杯 提交于 2019-12-03 12:00:07
I have this HTML code: <div class="header"> <div class="desc">Description</div> <div class="logo"><img src=""/></div> <div class="navbar"></div></div> .header has a height of 150px. .navbar has a height of 20px. When the user scrolls, I want .navbar to stick at the top. So I went to the CSS and set position:sticky and top:0. But this didn't work. I initially thought that firefox is not supporting position:sticky, but that's not the case because I was able to see a working demo of it. I googled about it but found nothing helpful. Anyone knows why this is not working? SVSchmidt It works fine if