navbar

How can you create a vertical navbar with drop down menus?

不打扰是莪最后的温柔 提交于 2019-12-05 08:28:47
I have a vertical navbar. Now, this navbar is supposed to have drop down menus. The only problem for me is, I am unable to make it so that the drop down menus are to the side of the menu. I have the HTML and CSS code on jsFiddle here: http://jsfiddle.net/maxkoenig/ZYUeX/ Here it is if you don't want to go on the website: HTML: <div id="wrap"> <ul class="navbar"> <li><a href="/index.php">Home</a></li> <li><a href="/boattypes/featureboats.php">Boat Types</a> <ul> <li><a href="/boattypes/sprint/sprint.php">Sprint</a></li> <li><a href="/boattypes/fitnesstouring/fitnesstouring.php">Fitness-touring<

Change NavBar color for all the pages in ionic

二次信任 提交于 2019-12-05 08:12:35
I am new in ionic and wants to learn it. my question is How to change nav bar color for all the pages in ionic 3. I have been using following code <ion-header> <ion-navbar color="primary"> <button ion-button menuToggle> <ion-icon name="menu"></ion-icon> </button> <ion-title>Hello Ionic</ion-title> </ion-navbar> </ion-header> Is there any way to change nav bar color for all the pages instead of manually doing <ion-navbar color="primary"> Add following line to variables.scss file to change the color globally. $toolbar-background: #3D9BDD; This can achieve different way i will show you 2 way

Creating Small Navbar and a side panel in Materialize css

别来无恙 提交于 2019-12-05 06:15:02
问题 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

Twitter Bootstrap - centering brand logo in navbar

无人久伴 提交于 2019-12-05 03:10:28
问题 I tryed centering the .brand logo with: .brand { margin-left: auto; margin-right: auto; } this is my top navbar layout: http://jsfiddle.net/J4zkJ/3/ but it seems it doesn't works. I searched on stack before to post this answer and the code i used above, is taken from an answered question. Any idea how to center .brand ? NB: i can't use position:absolute and fixed , and i would like to do this responsively ( responsive ) also i tryed this: .brand { margin:0 auto !important; padding:0 auto

what do css classes like my-2, my-lg-0, mr-sm-2 do in bootstrap 4? [duplicate]

不羁岁月 提交于 2019-12-05 02:55:46
问题 This question already has answers here : What is class=“mb-0” in Bootstrap 4? (2 answers) Closed 19 days ago . I have looked at other questions and the bootstrap documentation and cant seem to find out what these classes do to elements. Any help is appreciated! Im just trying to make my search bar be 1/4th the size on a large viewport, 1/3 the size on a medium viewport, and 100% the size on a small viewport! 回答1: Those are bootstrap spacing utilities classes : mr-sm-2 : r - for classes that

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

谁说我不能喝 提交于 2019-12-05 01:32:20
问题 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

Replace background in Twitter Bootstrap navbar for IE

主宰稳场 提交于 2019-12-05 00:54:19
问题 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; } 回答1: You need to add this: filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); 来源: https:/

How do I make my HTML5 nav li tab stay active on click with CSS3?

被刻印的时光 ゝ 提交于 2019-12-04 22:24:27
I am learning HTML 5 and CSS3 and am having trouble with my tabbed navigation bar. I thought the li:active css stlye would achieve my goal but that only is upon click and doesn't stay that way. I have looked at many tutorials across the web and cannot find out how to do this with just CSS and HTML. I would like to avoid using javascript or php if possible. I have found information in a few places on "child" elements and using the z-index properties, and think this may be a possible solution, but do not understand how to implement them. They look how I want on hover, but I want them to stay

Bootstrap 4 Nav Bar fixed-top over content

岁酱吖の 提交于 2019-12-04 21:28:42
I'm using bootstrap4 fixed-top navbar which works fine in normal browser. However, when I test on a mobile device (Galaxy S5 using chrome dev options) the content starts behind the nav bar, I've tried some padding in my css but I can't seem to get it to work correctly. Below is a jsfiddle of the HTML and CSS, the page content starts behind the fixed-top nav bar. https://jsfiddle.net/8kefh4u7/6/ Also here is my CSS html, body { height: 100%; } body { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-align: center; -ms-flex-pack: center; -webkit-box-align: center; align-items:

Text in Twitter Bootstrap navbar

无人久伴 提交于 2019-12-04 21:08:31
I'm trying to add text to top fixed navbar in Twitter Bootstrap but in some reason text is not on the same line with link wchich makes navbar twice as much hight as it should be. That's the code I'm using: <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <p class="navbar-text" >You are logged in as: <? echo $_SESSION['settings_users_name']; ?></p> <ul class="nav pull-right"> <li><a href="?action=logout">Logout</a></li> </ul> </div> </div> </div> If I outline "Block Level Elements" in Web Developer toolbar than I see that <p> has 100%