question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap 4 columns not working properly on Safari

See original GitHub issue

I made a website with Bootstrap 4 and everything works fine except auto wrap columns on Safari 10.1.1 on MacOS. When number of columns in a row is equal to 12, then the last column jumps to the new line instead of wrap to previous column. When number of columns is smaller than 12 there is no problem.

For example my top header: <div class="container"> <div class="row"> <div class="col-lg-3">logo</div> <div class="col-lg-9">menu</div> </div> </div> On Chrome and Firefox logo and menu are in one line but on Safari menu starts in a new line (screen from Safari): https://imgur.com/a/xTv9m

This looks like flexbug#11 and when I’m setting flex-basis to the columns the problem still occurs. I tried also with the border 1px transparent workaround but also without success.

This issue appears also on another sections in my website where I used 12 columns in a row.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

46reactions
pimisicommented, Mar 5, 2018

In my case I overrode the class .row:before, row:after, and set display: inline-block; That did the trick and did not affect Chrome and Firefox

12reactions
gilek555commented, Oct 3, 2017

Ok, I found what generate problem. I was delete this line .row:before { content: " "; }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 Safari on Mac Grid issue - Stack Overflow
It seems there is some code hidden in :before and :after elements inside the rows. This causes some kind of issues in safari...
Read more >
Bootstrap Grid System is not working in Safari browser
HI,. The Bootstrap 4 grid system is not working in Safari browser. Whatever I use column class, it falls in a single column....
Read more >
Bootstrap 4 Grid System broken in Safari - IKnowThatNow
Are you having troubles with Bootstrap 4 Grid System in Safari? What used to work doesn't seem to anymore within Safari.
Read more >
Bootstrap 4 Grid Issue Only On Safari - ADocLib
HIThe Bootstrap 4 grid system is not working in Safari browser. Whatever I use column class it falls in a single column. Column...
Read more >
CSS · Bootstrap
Responsive column resets. With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found