I have the following container:
#container { width: 75%; margin: 0 auto; background-color: #FFF; padding: 20px 40px; border: solid 1px black; margin-top: 20px; }
It was generated using nifty: layout Rails generator. How would I concentrate something inside this container, and not the entire page?
EDIT: Sorry for the lack of additional information :). This is what I'm trying to focus on:
<div id="nav"> <ul> <% if current_user %> <li><%= link_to "Sign out",destroy_user_session_path %><span>|</span></li> <li><%= link_to "New snippet",new_snippet_path %><span>|</span></li> <% else %> <li><%= link_to "Login",new_user_session_path %><span>|</span></li> <li><%= link_to "Register",new_user_registration_path %><span>|</span></li> <% end %> <li><%= link_to "Snippets",snippets_path %><span>|</span></li> <li><%= link_to "Chat",messages_path %></li> </ul> </div>
Here is the CSS that I still have:
#nav { list-style-type:none; padding:0; margin:0; } #nav li { display:inline; }
source share