Struggling to modify the color of the navbar-brand
class with Bootstrap 4? Despite referencing the documentation, I've hit a roadblock in changing its appearance. By adding a new navbar-custom class to customize the navbar-band class, it should have worked according to my understanding.
This is my code:
@import url('https://fonts.googleapis.com/css?family=Roboto');
* {
font-family: 'Roboto', sans-serif;
}
.navbar-custom {
background-color: #ff5a5f;
}
/* changing brand and text color */
.navbar-custom .navbar-brand {
color: white;
font-size: 25px;
}
/* modifying link color */
.navbar-custom .navbar-nav .nav-link {
color: white;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<title>iGloo</title>
<script src="https://use.fontawesome.com/bf64aa8e30.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light navbar-custom">
<a class="navbar-brand" href="#">iGloo</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<img src="https://cdn.homedit.com/wp-content/uploads/2011/10/room-for-teens-girl-orange-picture.jpg" , class="img-fluid" alt="Room Image"></img>
</div>
</div><br>
<div class="row">
<div class="col-md-6 title">
<h2>A House in the Middle of South Avenues.</h2>
</div>
<div class="col-md-6">
<h5>Ahmed Fahad</h5>
</div>
</div><br>
<hr>
<div class="row">
<div class="row">
<div class="col-md-3">
<i class="fa fa-bed fa-2x" aria-hidden="true"><p>Bedrooms 3 </p></i>
</div>
<div class="col-md-3">
<i class="fa fa-bath fa-2x" aria-hidden="true"><p> Bathrooms 3 </p></i>
</div>
<div class="col-md-3">
<i class="fa fa-user-circle-o fa-2x" aria-hidden="true"><p>People 6</p></i>
</div>
<div class="col-md-3">
<i class="fa fa-home fa-2x" aria-hidden="true"><p>Entire House</p></i>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-9">
<h3>About this House</h3>
<p>A wonderful house in the middle of South Avenues. It's good for a fmaily who are looking for a holiday in South Avenues. It has alot of windows and the sun light is perfect in the house.</p>
</div>
</div><br>
<hr>
<div class="row">
<h3>Amenities</h3>
</div>
<div class="row">
<div class="row">
<div class="col-md-3">
<i class="fa fa-wifi fa-2x" aria-hidden="true"><p>Wifi</p></i>
</div>
<div class="col-md-3">
<i class="fa fa-television fa-2x" aria-hidden="true"><p>TV</p></i>
</div>
<div class="col-md-3">
<i class="fa fa-bed fa-2x" aria-hidden="true"><p>6 Beds</p></i>
</div>
</div>
</div>
<hr>
</body>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
</html>