Issue with Bootstrap-vue grids causing overlap on smaller mobile screens

An issue has been brought to our attention regarding the layout causing overlaps on specific mobile devices. The problematic section of the grid is outlined below:

<FluidContainer>
    <BRow>
        <BCol cols="8" lg="4">
            <div class="float-left d-flex m-10">
                <router-link to="/" class="text-decoration-none">
                    <div class="d-flex align-items-center">
                        <!-- this is an image -->
                        <Logo class="d-inline-block align-top m-20" />
                        <!-- this is some text -->
                        <Strapline class="d-inline-block" /> 
                    </div>
                </router-link>
            </div>
        </BCol>
        <BCol cols="4" lg="8" class="d-flex">
            <div class="d-flex align-items-center w-100 justify-content-end">
                <BRow class="w-100">
                <NavBarToggle
                    v-if="displayMobileNavigationToggle"
                    :navbarCollapseId="navbarCollapseId"
                    v-on:click.native="navbarToggleClicked"
                    class="d-md-block d-lg-none"
                />
                </BRow>
            </div>
        </BCol>
    </BRow>
</FluidContainer>

The problem arises where, regardless of the value assigned to "cols" in the two BCol containers, the first column containing the image and text maintains a minimum width while the navigation element overlaps it. There is available space on the left side of the screen that could be utilized to shift elements leftward and potentially create more room, but the current layout design does not utilize this space effectively.

https://i.sstatic.net/3QgmK.png

Is there a solution to move content to the left or perhaps truncate text in order to resolve this issue? Or is this a challenge we must accept and work around?

Answer №1

Employing flex box, establish two distinct sections: one designated for textual content and the other reserved for navigation icons. Reduce the font size of your text and apply a negative margin value to effectively space them apart.

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

Conceal the content in order to determine the height of images displayed next to each

I am working on a layout where there are rows with images in the left column and text in the right column. The images have a ratio of 16:9. In case the text becomes too long, I would like to show only a portion of it with a gradient mask and provide a "Rea ...

Equalize the height of columns by making them all float at a uniform 100%

Let's discuss the challenge of having 3 floated columns. Take a look at this example: http://jsfiddle.net/A9dqD/ html, body {height: 100%;} #a { float: left; height: 100%; width: 50%; background-color: green; } #b { float: left; ...

Struggling to synchronize animation timing between elements using jquery

When you navigate to an album (for example, Nature because I'm still working on the others) and select one of the images, they all gradually fade out while the selected image appears on the screen. What's actually happening is that the selected i ...

The issue of JQuery recursion not properly focusing on a textbox

Can anyone help with a jquery focus issue I'm experiencing? My goal is to address the placeholder problem in IE by focusing on an element and then blurring it to display the placeholder. This functionality is being used in a modal form. Initially, e ...

``Consolidate and modify multiple records at once with a single click

Take a look at this code snippet for creating a table: while($record=mysql_fetch_array($myData) ) { echo "<form action=mydata3.php method=post>"; echo"<tr>"; echo "<td>" . $record['Id'] . "</td>"; echo "& ...

TPL operating on a List that is stocked with merchandise

I am facing an issue with the following code snippet: {[displayDate(dateRelease);]} Every model available in the store comes with a "dateRelease" property. I want to retrieve that date and format it using my displayDate() function before displaying it. ...

Tips for extracting all links from a website using Python and the Selenium IDE

I need to extract all the links from a web page using Selenium IDE and Python. For instance, if I search for "test" or anything on Google's website, I want to retrieve all the related links. Below is the code snippet: from selenium import webdriver ...

Arrange information into sections

This Angular code is used to format text into profile page as blocks of data: <div class="element-box"> <div class="details-wrapper"> <p><b class="label">Remote IP</b>{{apiattempt.remote_ip}}</p> <p>< ...

Utilizing CSS Grid to dynamically stretch and wrap rows based on adjacent siblings within a flat DOM structure

Looking for a way to create a grid layout that adjusts row sizes based on adjacent siblings. Interested in SCSS or CSS solutions using grid, flexbox, or other techniques. https://i.sstatic.net/Ump5U.png I am working with a dynamically generated list base ...

Increasing the padding at the top of the logo when scrolling down the page

When scrolling down the page, there seems to be extra padding above the logo that is throwing off the alignment with the rest of the site. I've been trying different solutions to correct this issue: //$('.navbar-brand').css({ 'padding- ...

Tips for maintaining a fixed height for a div while its content is being updated

<div id='wrapT'>some content here</div> <div id='btnsT'> <img id='prev' src='btns/prev_01.png' alt='prev'> <img id='next' src='btns/next_01.png' alt='next ...

customized multiselect dropdown with grouping options using Bootstrap

My dropdown menu looks like this: <select class="selectpicker" multiple> <optgroup label="option 1"> <option value="1">1</option> <option value="2">2</option& ...

Aligning items in the center using the flex property is limited to just one element

#draggable-container { margin: 0 auto; display: flex; flex-wrap: nowrap; align-items: center; } .draggable-game-content { width: 100%; height: 40rem; } .draggable-game { position: relative; border: 1px solid black; bor ...

What is the method for setting tabstops in XHTML?

Is there a way to create a tabstop in an xhtml webpage without using the "&nbsp;" method? I want to avoid putting a space between the ampersand and 'n'. Any suggestions? Edit: My initial post did not display the &nbsp;. I am looking for ...

How to use jQuery to disable td and ul elements

Has anyone successfully disabled a "td" or "ul" element using jQuery, similar to how we disable textboxes and other input types? I attempted to use the "prop" and "attr" functions in jQuery, but they did not seem to work. Is there a way to achieve this? ...

Possibly triggering multiple form submission events in jQuery

I am currently working on a form that allows for purchasing ad space. When you click on the PayPal button first, the form functions properly. However, if you first click on the submit button (#wd_submit) and then on the PayPal button, it opens two new wind ...

"The 'BillInvoice' object must be assigned a primary key value before it is ready for this relationship" - Error Message

There is an issue in my Django project related to the creation of a BillInvoice and its associated BillLineItem instances. The error message I'm receiving states: "'BillInvoice' instance needs to have a primary key value before this re ...

animation glitches in safari and chrome when using jquery

Hey there! I'm currently working on a form with multiple steps, where I animate the step number for each level of registration. The animation functions perfectly in Firefox, but unfortunately, it's not supported in Chrome and Safari due to an iss ...

What is the best way to adjust the timing between slide transitions?

I am utilizing the Slick slider for my website. I am looking to adjust the delay before switching slides, how can I achieve this? Below is the JavaScript code for the slider: $(".intro__slider").slick({ infinite: true, dots: true, dotsClass ...

What is the best way to prevent a dropdown menu in bootstrap CSS from displaying to the right?

I am currently implementing bootstrap 4.0 on my website. The dropdown menu is positioned at the top right corner of the screen. However, when a user clicks on the dropdown menu, it causes the page to expand slightly to the right, resulting in white space n ...