Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialIgor Pavlenko
12,925 Pointsneed help here
why i cannot pull the navbarbrand to the right on lg screens in bootstrap ?
<a class="navbar-brand pull-right-lg mr-0" href="http://volvocars.com">Volvo presented</a>
3 Answers
Rhys Kearns
4,976 PointsFrom looking at the video looks like you might have a syntax error
<a class="navbar-brand pull-lg-right mr-0" href="http://volvocars.com">
Volvo presented
</a>
Looks like its meant to be pull-lg-right not pull-right-lg
Brice Roberts
22,415 PointsI believe it is looking for
pull-lg-right
instead.
Karan Nahar
16,157 PointsHey! I have already posted an answer to your question. You can find it here.
Igor Pavlenko
12,925 PointsIgor Pavlenko
12,925 Pointsstill does not work.. the navbar-brand does not move to the right on the large screens maybe the problem is else where plz see the full code below:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Full Stack Conf</title> <!-- bootstrap css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> </head> <body> <!-- navbar --> <nav class="navbar navbar-toggleable-md navbar-light bg-faded"> <button class="navbar-toggler navbar-toggler-right" 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> <a class="navbar-brand" href="#">Navbar</a> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="#Home">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#About">About</a> </li> <li class="nav-item"> <a class="nav-link" href="#Speakers">Speakers</a> </li> <li class="nav-item"> <a class="nav-link disabled" href="#Schedule">Schedule</a> </li> </ul> <a class="navbar-brand pull-sm-right mr-0" href="http://volvocars.com">Volvo presented</a> </nav> <!-- /navbar -->
</body> </html>