The functionality of Bootstrap is not meeting our expectations

My Node.js UI is using Twitter Bootstrap and Jade to generate HTML. I am trying to implement the jumbotron feature from http://getbootstrap.com/examples/jumbotron/. Additionally, I want to align tabs 1 & 2 in the same row as the project name on the nav-bar with a black color scheme similar to the link provided. Despite trying various methods, I can't seem to achieve this desired layout. Any suggestions on what might be going wrong?

<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet"></link>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<nav class="navbar navbar-inverse" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header">
      <button class="navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse"></button>
    </div>
    <a class="navbar-brand" href="/#">
                        Node Rec
    </a>
    <div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li>
          <a href="/recipes/b1">

                                    Tab1

                                </a>
        </li>
        <li>
          <a href="/recipes/b1"></a>
        </li>
      </ul>
      <div class="container"></div>
      <div class="jumbotron"></div>
      <h1>

                            List Arrivals

                        </h1>
      <ul>
        <li>

          33: LAX-Tue Dec 02 2014 16:04:41

        </li>
        <li>

          13: MKE-Tue Dec 02 2014 16:05:48
        </li>
        <li></li>
        <li></li>
      </ul>
    </div>
  </div>
</nav>

This is the current appearance of the design...

Switching to navbar-inverse results in an opposite effect, not resembling the jumbotron appearance.

Answer №1

Here is a potential solution. I have relocated the jumbotron outside of the navigation bar.

<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet"></link>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<nav class="navbar navbar-inverse" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button class="navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse"></button>
    </div>
    <a class="navbar-brand" href="/#">
                        Node Rec
    </a>
    <div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li>
          <a href="/recipes/b1">Tab1</a>
        </li>
        <li>
          <a href="/recipes/b1">Tab2</a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<div class="container">
  <div class="jumbotron">
    <h1>

                            List Arrivals

                        </h1>
    <ul>
      <li>

        33: LAX-Tue Dec 02 2014 16:04:41

      </li>
      <li>

        13: MKE-Tue Dec 02 2014 16:05:48
      </li>
      <li></li>
      <li></li>
    </ul>
  </div>
</div>
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Expanding the size of the number input in Twitter Bootstrap to accommodate changing content dimensions

I have a numeric input field that I want to customize in terms of width. I need the field to start with a minimum width so that -1, the default value, fits nicely inside. As the value changes, whether decreasing to -100 or increasing to -1,000 and beyond ...

What is the best way to extract raw data from a kendo dataSource?

After fetching data for my Kendo grid from the backend and populating it in the alignedProcessesToRiskGridOptions, I noticed that while the data is displayed in the grid, I also need access to the raw data for additional logic. Is there a way to retrieve d ...

Send an unchangeable list to a component that needs an Array

Just diving into the world of React and learning that using .toJS() is not recommended due to its impact on performance. The dilemma I'm facing is that a third-party component I'm using requires an array as props, while my state is stored as an ...

Dual Socket.io connectivity

Here's a simple question I have. I am running a Node.js server with the following code snippet: io.on('connection', function (socket) { console.log('connection'); }); On my webpage, I have this line of code: var socket = io(); ...

"Utilizing the __proto__ property in Express.js for handling request

One issue that I've encountered is with the request.body generated by the express.urlencoded() middleware. Sometimes, it adds "__proto__" at the end of the request.body object, which makes it impossible to directly use it to initialize a mongoose mode ...

Navigating from the Login Page to the Dashboard in Vue.js following successful token validation

I am facing an issue with the code that is supposed to redirect the User to the dashboard page if they have a token. Despite generating a JWT token from my Spring Boot backend and sending it to Vue for processing, the redirection is not working as expect ...

Display the element containing a numerical value

How can I toggle the visibility of an element based on a number value using a click function? HTML <p> <button>Run</button> </p> <p> <span id="demo">1000</span> </p> <p id="result">Lorem Ipsu ...

What is the process for transferring a file to a server and then returning it to the client?

Currently, I am working on manipulating PDF files in ReactJS and making modifications to them on the server side. However, I am facing an issue with passing my file data to the server side and then receiving it back. This is how I retrieve my file: <di ...

establishing irregular edges for the div container

Looking to create a class that can transform an element into a specific shape using CSS. Not entirely sure if this is achievable with pure CSS alone, but applying a class to the image element will morph it into the desired shape as shown below. <style ...

The height property in the CSS is causing the parent element to break and cannot be confined

Here is the HTML code that I am currently working with: <div id="div1"> <p id = "a"> <! -- content --> </p> <p id='b'> <! -- content --> </p> </div> Additionally, th ...

Building an HTML Form for Requests

Having some trouble creating an HTML form, particularly with resizing the Fieldset and legend elements. As a novice programmer, I am practicing building HTML forms. My goal is to have the form adjust its size based on the window without displacing the cont ...

Alter the color of several buttons with each subsequent click using jQuery

How can I change the button color after clicking it? I have a single button that will change to red on the first click, yellow on the second click, green on the third click, and then become disabled after three clicks. function updateBtnColor() { $ ...

HPM and Express - 404 Error and Client Disconnection with PVE terminal websocket

Utilizing Express along with HPM to proxy all requests for my website is simplified by a tool I've named ws-proxy (ws referring to web server, not websocket). A key component being proxied is my PVE/Proxmox Virtual Environment node, which relies on s ...

Unexpected database query result in Node.js

In my newuser.js file for a node.js environment with a mongodb database managed through mongoose, I have the following code: //newuser.js //This code is responsible for creating new user documents in the database and requires a GET parameter along with a ...

JQuery implementation of Axis webservice call

Trying to invoke my Axis webservice with the code below var wsUrl = "http://localhost:8080/TestServ/services/TestCls?wsdl"; var soapreq = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:cod=\"http:// ...

Encountered a problem while integrating Flickity Events with Vue3 and TypeScript: receiving an error stating that "this$refs.flickity.on

I have successfully implemented a custom Flickity.vue object for Vue 3 with TypeScript support, based on the solution provided here. However, when attempting to listen for events on my flickity carousel, I encounter runtime type errors in the console: thi ...

Netlify deployment causing issues with proxy API functionality

I'm currently integrating an API deployed on Heroku with my React app. In order to resolve the CORS error, I included a proxy in the package.json file like so: "proxy":"https://mobtech.herokuapp.com" When making API calls, I use t ...

Issues with navigation menu not showing dropdown options and impacting webpage layout (HTML/CSS)

I'm having trouble creating a drop-down navigation menu using HTML and CSS. When I add the drop-down list, my menu extends onto two lines instead of one, and the drop-down menu doesn't appear when hovering. Here is a link to the jsfiddle for refe ...

What steps should I take to link a basic node.js application hosted on a Docker container with an Open Policy Server running on another Docker container?

As I attempt to combine a node app and an Open Policy Agent server using docker compose, I am facing an issue. While I can access the OPA server from my browser, when I try to make a request using axios from the node app, I encounter the following error: E ...

What is the process for invoking an API endpoint that I developed in my client-side application?

I created a server-side module that takes in a user's login credentials and returns a JSON object. However, I am encountering 404 errors when trying to call this module from the client side using the specified API endpoint in the router object. I&apo ...