bootstrap nav can't right align ul

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

bootstrap nav can't right align ul

fugee ohu
I'm trying to right align a <ul> in my navbar but it doesn't right align, it's left aligned

<nav class="navbar navbar-expand-lg navbar-light bg-light">
     <%'designation=?', 'blog_logo').first %>

<img src="<%= %>" height=100 class="navbar-brand logo"><%= @blog.title %>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">

    <ul class = "nav navbar-nav navbar-right">
            <% if user_signed_in? %>
                  <li class="nav-item dropdown">
                      <a href = "#" class = "dropdown-toggle" data-toggle = "dropdown">
                          <%= %>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                          <%= link_to (t 'main_site'), "http://www.#{request.domain}" %>
                          <%= link_to (t 'sign_out'), destroy_user_session_path, method: :delete %>
                  <li class="nav-item">
            <% else %>
                  <li class="nav-item">
                    <%= link_to (t 'sign_in'), new_user_session_path %>
            <% end %>
            <% if admin_signed_in? %>
                     <li><%= link_to, administration_path,  class: "nav-item" %>
            <% end %>

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit