Your personalized CSS
class
is currently conflicting with Bootstrap-4 CSS
class
. To prevent this conflict, you can take the following steps:
- Start by adding the Bootstrap-4
CDN
followed by your custom CSS
. This will override Bootstrap's CSS
with your custom CSS
.
Example:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Bootstrap CDN -->
<link rel="stylesheet" href="your-custom.css" />
<!-- Your custom CSS -->
- If the above solution does not resolve your issue, navigate to your HTML and change the Bootstrap
class
to your custom class
.
Example:
<nav class="navbar"></nav>
<!-- -->
The classes mentioned above are reserved by Bootstrap. If these class
names conflict with your .navbar
class
, please adjust the class
.
<nav class="my-navbar"></nav>
<!-- OR -->
<nav class="navbar my-navbar"></nav>
- If the previous solutions do not work, consider using
!important
after the CSS
property. This will prioritize your custom CSS
over Bootstrap's CSS
.
Example:
.navbar{
display: flex !important;
}
Note: It is recommended to avoid using !important
with CSS properties. Instead, create new classes to overwrite Bootstrap's CSS
.