Make the most of your webpage with full-width Bootstrap navigation tabs

I am working towards achieving a full-page span for the nav-tabs so that the bottom line touches the end of the page. In addition, I want the checkboxes positioned above this section to align with the tab links. Here is what I have accomplished so far:

<div class="float-right">
    <form class="form-inline">
        <label class="custom-control custom-checkbox">
            <input type="checkbox" checked="checked" class="custom-control-input" />
            <span class="custom-control-indicator"></span>
            <span class="custom-control-description">Show all</span>
        </label>
        <label class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" />
            <span class="custom-control-indicator"></span>
            <span class="custom-control-description">
                Show some
            </span>
        </label>
        <label class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" />
            <span class="custom-control-indicator"></span>
            <span class="custom-control-description">
                Show others
            </span>
        </label>
    </form>
</div>

<ul class="nav nav-tabs">
    <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
    </li>
    <li class="nav-item">
        <a class="nav-link" href="#">Next</a>
    </li>
    <li class="nav-item">
        <a class="nav-link active" href="#">Best</a>
    </li>
</ul>

https://jsfiddle.net/jf7jp30g/

I've been experimenting with z-index in an attempt to solve the issue, but I'm struggling to make progress. Any assistance on this matter would be greatly appreciated!

Answer №1

Is this example somewhat similar to what you're looking for?

https://example.com/code-example

<ul class="nav nav-tabs">
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Next</a>
  </li>
  <li class="nav-item" style="margin-right:auto;">
    <a class="nav-link active" href="#">Best</a>
  </li>
  <li class="nav-item" style="padding-top:5px">
    <form class="form-inline">
      <label class="custom-control custom-checkbox">
        <input type="checkbox" checked="checked" class="custom-control-input" />
        <span class="custom-control-indicator"></span>
        <span class="custom-control-description">Show all</span>
      </label>
      <label class="custom-control custom-checkbox">
        <input type="checkbox" class="custom-control-input" />
        <span class="custom-control-indicator"></span>
        <span class="custom-control-description">
            Show some
        </span>
      </label>
      <label class="custom-control custom-checkbox">
        <input type="checkbox" class="custom-control-input" />
        <span class="custom-control-indicator"></span>
        <span class="custom-control-description">
            Show others
        </span>
      </label>
    </form>
  </li>
</ul>

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

Showing the outcome of a PHP function within a div container

While working on my WordPress site, I've implemented user registration and login functionality. However, I'm not a fan of the default 'admin bar' and would rather create a custom navigation bar. I am looking for a way to dynamically loa ...

How is it possible for flex-direction to function correctly even when display: flex is not explicitly defined

I'm unsure if it is required to specify the display property when the flex-direction is set in a container. Everything seems to be working fine without it, but I'm concerned that I might be causing issues: .App { background-color: white; ...

Steps to opening a second hyperlink in the same window after initially clicking on Hyperlink1

I'm currently working on a project that involves a main web page with three links: Link1, Link2 and Link3. The requirement is for Link1 to open in a new window (window1) when clicked, while Link2 and Link3 should open in the same window as Link1 (wind ...

Decoding HTML with Python

My current project involves creating a program that can find the definition of any given word and return it. I managed to achieve this using RegEx to search for text between specific tags where the definitions are stored. However, I am now seeking a more ...

The insider's guide to understanding the inner workings of the :nth-child() property

I am finding the :nth-child() property to be a bit confusing. Sometimes it takes arguments like :nth-child(2),:nth-child(2n),:nth-child(2n + 1). I'm not sure what these mean exactly - are they referring to even or odd divs, or is there another propert ...

Positioning the radio tag in perfect alignment with the adjacent image

I am struggling to align my radio buttons with the image placed beside them. The image has a width of 260 pixels and a height of 88 pixels, while the radio buttons are enclosed within a table. Although I attempted the following CSS code, it did not produ ...

What is the best way to implement NgClass on a single iteration within NgFor while utilizing parent/child components?

My goal is to toggle the visibility of tiered buttons when a parent button is clicked. I am using ngFor to generate three buttons on tier 1, but I'm struggling to select only the desired tier when clicked instead of affecting all of them. I've m ...

Stack two divs together

It may seem silly, but I just can't get it to work. I'm attempting to enclose two divs with different classes in another div, but my current code is automatically closing the divs. There are multiple sets of divs with classes .panel-heading and ...

Unusual Glitch in Bootstrap 3 Dropdown Menu

I am currently developing a website using Bootstrap 3. I am encountering an issue with the navbar dropdown. When I click on the link, it changes to show "expand child menu" and "collapse child menu". To clarify, here is the image I am referring to: Initi ...

The Label in Material UI TextField is appearing on top of the border,

Incorporating Material UI TextField and Material UI Tab, I have encountered an issue. There are two tabs, each containing a text field. Upon clicking on the TextField, the label's border is supposed to open, but this behavior only occurs if the curren ...

Issue with JavaScript ScrollTop

Simply put, I am trying to determine the total scroll size for a text area in a unit that scrollTop can align with. However, I am at a loss on how to do so. I've tried scrollHeight and various other methods without success. Any advice or suggestions ...

Utilizing Python to alter the HTML source code of an external website

While examining the structure of a website (specifically Google Alerts at https://www.google.com/alerts), I entered a name and clicked on 'more options'. As I inspected the element of this page, focusing on buttons like 'How Often', I n ...

Issues with CSS z-index in negative values not functioning correctly

Help! I'm encountering a perplexing z-index issue on my website. Check out the problem here: Upon closer inspection of each step's header, you'll see that only step 3 features a ribbon while steps 1 and 2 do not (if this isn't visible, ...

Easy ways to manipulate the style of array components in Vue.js

Hey there all you programmers, I'm reaching out to see if any of you have insight on how I can modify the style of a specific component within an Object array. This is the code snippet: <template> <div> <ul> <li v-fo ...

Issue with PHP redirection not functioning as expected upon submission

Thank you for taking the time to offer assistance. I am encountering an issue with a basic HTML contact form that utilizes a PHP file for processing. The form's method is set to post and it directs its action to a PHP file. Upon completion of the PHP ...

The behavior of input types disabled and readonly varies when combined with a hyperlink (a href

In the code snippet below, I am trying to disable and enable a calendar clickable icon. <p> <label> <input type="text" name="date18" id="date18" value="01/01/2012" style="width:75px;" disabled/> </label> ...

Adjusting the image width to a set height requirement

When working with images, it can be tricky to maintain the aspect ratio. For example, if you have an image set to a specific height like 500px within a div that is 960px wide, the image may stretch to fill the width. This can distort the image and give ver ...

Place a vertical slider adjacent to an HTML element on either the left or right side

I'm struggling to bind a range slider to the left or right side of a canvas that displays video. Despite my efforts, CSS seems to be putting up a strong fight. I can handle issues like stretching and slider values, but attaching it to the canvas is pr ...

What is causing my device form to malfunction - could it be the <form> HTML tag?

How can I resolve the issue with my devise sign up form not submitting when using the HTML "form" tag? Removing the tag allows everything to work correctly without any errors. <form> <div class="form-group"> & ...

Having trouble interacting with Bootstrap dropdown using Selenium in Python

I have a dropdown menu on my frontend that has the following structure: <div class="dropdown-menu dropdown-menu-right text-left" id="dropdown_menu"> <a class="dropdown-item" data-toggle="modal" ...