Safari causing problems with Bootstrap @grid-float-breakpoint

Working on a project with Bootstrap 3.3.2, my aim was to keep the nav menu always collapsible, similar to its mobile view. To achieve this, I visited bootstrap.com/customize and adjusted the @grid-float-breakpoint: to 99999999px;, an overly large value ensuring the navbar never expands. Everything seemed to work well across browsers except for Safari, where the dropdown icon disappeared despite the header image showing up.

Upon inspecting the CSS of the drop-down icon in Safari, I found:

    @media (min-width: 99999999px;){ 
    .navbar-toggle {
    display: none;
    }
    }

It appeared that Safari might be incorrectly interpreting the viewport as larger than 99999999px. Though the simple fix would be to change the code to display: inline;, this would remove the .navbar-toggle from the grid system, impacting responsiveness.

Any suggestions for a solution or insight into this potential bug issue would be greatly appreciated. I've already looked into problems related to @grid-float-breakpoint but haven't found much other than previous issues with Chrome that have been resolved.

Thanks!

Answer №1

It appears that the issue you are referencing is related to , and it seems to still affect Safari 8. To solve this problem, consider using a slightly lower value for @grid-float-breakpoint. Simply removing one digit may be enough:

@media (min-width: 999999999px) {

I have also taken the initiative to report this issue on WebKit bug tracker:

Answer №2

Spending some time experimenting with the css, I discovered that making changes to the

@media (min-width: 9999999999px) .nav-bartoggle
by setting -webkit-display: inline; and adjusting the width of the parent element along with a few other tweaks can yield satisfactory results. Although cvrebert's approach may be more effective, I just wanted to highlight that there are alternative pure css solutions available for those who may need them in the future.

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

Creating a simulated dropdown menu using only CSS

I was able to create a select menu using only CSS, following some code I found. However, I am now facing an issue with overlaying divs. Whenever I hover or click on the "select menu", all the divs below it move down. I've attempted to adjust the z-i ...

Display icons within each table cell row

Objective: I want to implement a feature where icons appear when the cursor is inside a td row, allowing users to click on them. These icons will contain links. When the cursor moves to a new td row, the previous row should return to its default state a ...

How can I create additional white space at the end of my webpage with CSS grid?

Looking for some help with CSS as a beginner here. I'm facing an issue where my CSS is creating excessive blank space at the bottom of my document, almost 60% of it. Could this be due to incorrect parent parameters or the children elements? This is m ...

Checkbox label covering checkbox

I've been trying to enhance a login page with checkboxes by implementing code from react-bootstrap.github.io The issue I'm facing is that the checkboxes are overlapping their corresponding labels. Below is the snippet from my register.js file: ...

How can I stop the form label from aligning to the right in Bootstrap 4?

I have encountered a formatting issue with my Bootstrap 4 form. The label for "Number of Travellers" is currently aligned to the right, which disrupts the overall look of the form and makes the label appear out of place. Below is the snippet of the code i ...

The problem of box-shadow conflicting with fluid width layouts has been a persistent issue,

After spending the past couple of days refining a page I created, I've encountered an issue following the implementation of box-shadow. I'm hoping someone can provide some advice on how to easily resolve this. The Scenario: I have a div with var ...

Issue encountered when attempting to retrieve dimensions of a div element

Using Vue and facing an issue with a div setup that I have: <div :style="'width:' + imageSize.width + 'px; height:' + imageSize.height + 'px'" id="image-container"></div> The dimensions are sto ...

Guide to creating a see-through right border for vertical tabs using Bootstrap 4

I have been working on creating vertical tabs in Bootstrap 4 and have almost completed the task. However, I am facing an issue with making the right border of the active tab transparent. Despite several attempts, I have not been successful in achieving thi ...

Enhance Your Images: Creating Stunning Colored Overlay Effects using HTML and CSS

I'm currently working on implementing an overlay effect for images on a webpage. The idea is that when the cursor hovers over an image, it will change color slightly. However, I'm facing some issues and the desired effect is not reflecting. How c ...

Is there a way to retrieve the immediate children of all elements using CSS selectors in Selenium?

Although I attempted to utilize the ">" syntax, selenium does not seem to accept it. I am aware that Xpath can be used to obtain what I need, however our project exclusively utilizes CSS selectors. My goal is to create a list containing only the immedi ...

Display the menu upon activating the hover event icon using only CSS

Assistance Needed - Unable to activate hover and display the rest of the div I want to activate the hover effect where early levels are visible, and when hovering over the first level, the subsequent levels appear List item body { margin: 3%; } div.ti ...

Issue with title position when hamburger menu opens

My title, "Roberto Salas," is not staying in place when I resize the window or view it on my cellphone. You can see an example of this issue here. If the hamburger menu button drops down, the title is also not in the correct position. See an example here. ...

The method for implementing conditional CSS on an element and ensuring it remains in place

I'm looking to add a style to an element with either angular or jquery, but I've noticed that the style gets lost when I change views. Would it be best to use $window and local.storage for this purpose, or are there simpler methods available? ...

Creating an animated full-width SVG with a background image

This has been quite a challenge for me. I have successfully implemented the main functionality that I wanted in this codepen. The SVG is divided into 3 sections, with the middle section sliding away from the others when you click the "Find Out More" button ...

Unable to modify zoom settings in iOS using javascript

My website is 1000x820 in size, but please don't ask me about responsive web design. Here's the viewport setup: <meta name="viewport" content="target-densitydpi=device-dpi, width=1000px, user-scalable=no"> When accessed on an iPhone SE w ...

Setting initial opacity for CSS on page load

I'm not a pro at web design, but I'm trying to create my own website. I've divided my page into two sections - the left side for the menu bar and the right side for content. To add a 'cool' blur effect over my menu bar, I decided t ...

Background Color Not Displaying in CSS3 Preloader Code

Utilizing a CSS3 Designed Preloader for my website with some unique keyframe animations. #preloader { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50 ...

Tips for changing the contents of a div when a particular link is clicked

Can someone please explain how to update the contents of a div using "AJAX" when a specific link is clicked? Here's what I'm trying to achieve: I would like to show the company description if the user clicks on "Description", or display the revi ...

HTML containers continue to show gaps even with no margin or padding applied

I have a basic setup here with a single line of red text on a colored background. Despite setting margin and padding to zero and not having any child elements causing spacing issues, I still see a gap around my container. Here's my CSS: { width: ...

Display HTML content in a modal dialog box without parsing it

I'm currently working on a website showcasing various HTML and CSS spinners and loaders. Each example opens a modal window upon click, where I aim to display the corresponding code for that spinner so users can easily copy and implement it in their ow ...