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 trialDavid Olverson
3,441 PointsNavbar is Off
Hi,
My navbar is off. Everything is appearing underneath each other instead of side-to-side. Same with my log in and user name. It goes right, but is not lined up on the bar. The application.html.erb file looks exactly the same as the one in the project download files. Thoughts?
Dave Olverson
David Olverson
3,441 Points<!DOCTYPE html>
<html>
<head>
<title>Incident Application</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a href="#" class="brand">Incident</a>
<ul class="nav">
<li><%= link_to "All Incidents", incidents_path %></li>
</ul>
<ul class="nav pull-right">
<% if user_signed_in? %>
<li><%= link_to current_user.full_name, edit_user_registration_path %></li>
<li><%= link_to "Log Out", destroy_user_session_path, method: :delete %><li>
<% else %>
<li><%= link_to "Register", new_user_registration_path %></li>
<li><%= link_to "Log in", new_user_session_path %></li>
<% end %>
</ul>
</div>
</div>
</div>
<div class="container">
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
<%= yield %>
</div>
</body>
</html>
David Olverson
3,441 PointsSo, after a boat load of searching and playing around, I actually found a missing </div> tag that had thrown the whole thing off. It's working now and looking pretty nice. :-)
1 Answer
David Olverson
3,441 PointsSo, after a boat load of searching and playing around, I actually found a missing </div> tag that had thrown the whole thing off. It's working now and looking pretty nice. :-)
Kai Aldag
Courses Plus Student 13,560 PointsThats very good :)
Kai Aldag
Courses Plus Student 13,560 PointsKai Aldag
Courses Plus Student 13,560 Pointscan you please post your code?