I'm currently trying to render a newsfeed, similar to that of FB on a Rails application I'm working on. Unfortunately, I'm not the greatest when it comes to CSS and I'm having some issues trying to display different posts. This issue occurs whether I'm using BootStrap or plain CSS. I do believe it's something to do with the loop that is created by `<% @posts.each do |post| %>` Currently, whenever a new post is made, it wraps inside the previous post; thus the more posts that are made, the thicker the border gets. 

Image: ![Newsfeed](https://s30.postimg.org/jqkjna7zl/Screen_Shot_2016_12_09_at_13_58_12.png)

```
<% if @posts.any? %>
<% @posts.each do |post| %>
<div class="well">
  <a href="/users/<%= post.user.id %>/show"><%= post.user.first_name %> <%= post.user.last_name %></a><br>
  <% if !post.image.exists? %>
    <h2> <%= post.text %> </h2>
  <% else %>
    <h2> <%= link_to post.text, post_path(post) %> </h2>
    <%= link_to post_path(post) do %>
      <p><%= image_tag post.image.url(:medium) %></p>
    <% end %>
  <% end %>
<% if @user %>
    <% if current_user.voted_up_on?(post) %>
      <%= link_to "Like", dislike_post_path(post), method: :put %>
    <% else %>
      <%= link_to "Like", like_post_path(post), method: :put %>
    <% end %>
<% end %>
<%= "Likes: #{post.get_upvotes.size}" %>
<% if post.user == current_user %>
<%= link_to "Edit", edit_post_path(post) %>
<%= link_to "Delete", post_path(post), method: :delete %>
<% end %>
<div id='comments_div' class="comments-index">
  <%= render post.comments %>
</div>
<% if current_user %>
  <%= form_for [post, post.comments.new ], remote: true do |f| %>
   <%= f.text_area :text, placeholder: 'Add a comment' %>
   <%= f.submit 'Comment' %>
  <% end %>
<% else%>
  <p>You need to <%= link_to "sign in", new_user_session_path %> to comment</p>
<% end %>
<% end %>
<% else %>
No posts have been added!
<% end %>
</div>

```

Any help would be greatly appreciated! Thanks. 

Edit: OK, please take a look at the new image -- hopefully that will make the issue slightly more obvious. Additionally, I've removed all the dead tags and replaced them with just one: BootStrap's 'well' class. So, there you have it. All the information you need is within the code above.