Having trouble getting the Bootstrap 4 row to expand all the way to 100% width

I'm trying to create a row with 3 columns - one for pagination count, one for table filtering, and another for a button.

Everything is fine on small, medium, and large screens but when I maximize the window, there's a big gap above the table. Refer to the image below at the bottom.

https://i.sstatic.net/VsW1a.png

I've tried various combinations of flex-fill, w-100, etc. to make it expand to 100% width on extra-large screens but couldn't get it right. Any ideas?

Here's the relevant code section above the table:

<div class="col">
    <div class="container no-padding">
        <div class="row mt-1">
            <div class="col d-none d-md-block no-padding">
                <p>Showing {{ $assets->firstItem() }}-{{ $assets->lastItem() }} of {{ $assets->total() }} total</p>
            </div>
            <div class="col-auto flex-fill flex-md-grow-0 no-padding mb-3">
                <div class="container">
                    <div class="row">
                        <div class="col m-0 p-0 mr-2">
                            <form class="form-inline">
                                <div class="input-group">
                                    <input style="font-size:80%;" class="form-control" type="text" name="filter" value="" placeholder="Filter results">
                                </div>
                            </form>
                        </div>
                        <div class="no-padding">
                            <a class="btn btn-dark btn-sm mr-1" href="{{ action('AddAssetController@index') }}" role="button"><i style="font-size:80%;" class="fas fa-plus"></i> New Asset</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

Edit:

This is the code from my template. The previous code is part of @section('content'), which is output and parsed by @yield('content') below.

<div class="row">
    <div class="col-12 no-padding">
        @include('layout.includes.header')
    </div>
</div>
<div class="row h-100">
    <div class="col-12">
        <!-- Begin nav/content row --> 
        <div class="row h-100">
            <div id="sidebar-wrapper" class="visible">
                @include('layout.includes.nav')
            </div>
            <div class="col content" style="overflow-x:auto;">
                <div class="row no-padding">
                    <div class="col d-none d-sm-block">
                        <h4>@yield('content-heading')</h4>
                    </div>
                    <div class="col flex-grow-1">
                        @include('layout.includes.searchform')
                    </div>
                </div>
                <div class="row no-padding inner-box shadow p-3 mb-5 bg-white rounded">
                    @yield('content')
                </div>
            </div>
        </div>
        <!-- END main column -->
    </div>
</div>

Answer №1

It may not be exactly what you were looking for, but I've done my best to create something similar to your desired outcome. Please take a look and let me know if this meets your expectations: https://example.com/custom-design

Here is the HTML code:

<div class="custom-result p-4 border">
  <div class="container-fluid">
    <div class="row align-items-center">
      <div class="col-lg-6">
        Displaying 1-20 of 32 items
      </div>
      <div class="col-lg-6">
        <form action="" class="form-inline float-right">
          <input type="text" class="form-control mb-2 mr-sm-2" id="inlineFormInputName2" placeholder="John Smith">
          <button type="submit" class="btn btn-primary mb-2">Submit</button>
        </form>
      </div>
    </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

I am looking to transform the col-sm-4 in Twitter Bootstrap into two equal columns, one containing an image and the other containing content, with an additional row at the bottom

Hello there! I managed to create three columns in one row, each divided into two equal sections with a footer row. Take a look at the image below for reference: You can view the alignment sample here Here is the code snippet: <div class="container"&g ...

The rendering of CSS is altered when being processed by IIS

It appears that this issue is not specific to any browser and generally affects styling in various webkit/gecko/mozilla styles. For instance, when I create a website mockup and implement a style like: element.class { border-radius: 5px; -moz-bor ...

What is the best way to create a button with a dynamic background animation in React?

Looking to design a button with an animated background, possibly in gif or video format. An example of what I have in mind is the DOWNLOAD button on this website's main page: Ideally, I am hoping for a solution using React. ...

Incorporate text onto an image using Semantic UI

Currently, I am utilizing Semantic UI to display images. While it is functioning well for me in terms of adding text near the image, I desire to have the text positioned on top of the image. Ideally, I would like it to be located on the lower half of the i ...

Adjust the horizontal background-position transition for color change while scrolling using jQuery and CSS

I came across a fascinating website - - where the background-position changes on scroll() from a linear gradient with two colors to smoothly slide one color off the screen. While I grasped how they achieved the split colors using linear-gradient, I'm ...

Positioning absolute elements negatively in Firefox may cause unexpected behavior

I attempted to position an absolute element with a negative value, and it works perfectly in every browser except for Firefox. In Chrome, IE, or Safari, the blue handler box is correctly positioned in the middle of the top border. Is there a workaround to ...

The DIV refuses to center-align

I am struggling to center a div element. I have tried using margins (margin: 0 auto) and left/right CSS attributes (left: 50%, right: 50%), but the result is not as expected. Can anyone point out where the problem might be? EDIT: The issue I'm facin ...

Ways to extract certain characters from each element in an array

I'm attempting to make the first four characters of each element in an array (specifically a list) bold, but I am only able to select entire strings: $("li").slice(0).css("font-weight", "Bold"); Is there a way for me to indicate which characters wit ...

Design a unique cross-shaped watermark using CSS

I am looking to create a unique cross image that will be displayed within a variable height Div 1. How can I achieve this result? This is what I have attempted so far: .cross01 { width:520px; height:100%; background:url(../images/cross01.png) repeat-y; p ...

Design your own unique HTML webpage

My goal is to create a screen using divs that includes a big div which aligns with the month of October. This big div should be movable across the months, and when it stacks on a specific month, a form should be submitted. I am seeking assistance with po ...

Tips for creating a responsive iframe without relying on aspect ratio assumptions

Is there a way to create a responsive iframe without relying on a fixed aspect ratio? The width and height of the content are unknown until rendering. Keep in mind, using Javascript is an option. For instance: <div id="iframe-container"> <i ...

How to Adjust Overlapping Text in CSS?

Currently, I am facing an issue with an element overlapping in my CSS file. On a regular browser, one line of text appears fine but on mobile devices, it overlaps into two lines. This problem is specifically for the mobile version of the website, particula ...

Issue with Bootstrap text being invisible in iOS input field

While developing a small website using Bootstrap, everything appears fine on Windows, Android, and Mac. However, on iPhone (iOS) the text in input fields is not visible, almost as if the color is white or the text has low opacity. I attempted to disable w ...

Discover the possibilities of Bootstrap4 CSS and JS Components across various namespaces

Is there a way to add prefixes to each Bootstrap class in CSS and JS files to prevent name collisions within a Bootstrap4 SCSS-based build? I attempted using the bootstrap namespace prefixer tool found at https://github.com/faucamp/bootstrap_namespace_pre ...

Conceal the footer when the website is scrolling, reveal it when the website is not scrolling

Before I pose my question, I need to establish two constraints: Must be compatible with IE 7+ Only able to modify the CSS, cannot adjust the HTML/JS So, I have two divs: <div id="content"></div> <div id="footer"></div> "#conten ...

What is the best way to make a div that fades away after a set period, but remains visible when hovered over?

I am currently working on implementing a notification system that will appear for a few seconds and then vanish. However, I want to give users the option to hover over it with their mouse to prevent it from disappearing. It would also be nice to have the n ...

The issue with the background-size: contain property not functioning properly across different browsers is causing

Hey there! I have created a gallery using a DIV element with a changing background image depending on the preview image or text that is clicked on. Since the pictures in the gallery are of different sizes, I decided to use "background-size: contain". The ...

angularjs: hide div based on text entered in textfield

Is there a way to hide a div (with the class "card") until the user inputs text into the textfield in an AngularJS application? I believe the solution involves using ng-show, but I'm unsure of how to implement this functionality. Any assistance would ...

What is the process for requesting a css file?

My CSS file is pretty lengthy, with over 3000 lines (yes, it's a tad excessive). I'm looking to organize them in alphabetical order so I can easily locate properties. Using Ctrl+F simply tires me out because of the abundance of similar selectors. ...

How can I generate a bounding box with CSS?

I am a newcomer to vue.js and I have a question about creating a bounding box for any element. This bounding box resembles a view box in svg. For example, I have created a checkbox like this one: checkbox Below is the code to style the checkbox: /* checkb ...