Check it out in action right here:
All I want is for the .news
div boxes to gracefully float left and right using the handy cycle
helper in Rails. However, the current output isn't quite what I had in mind:
This is how I envision the layout should look like instead:
What could be causing this strange stacking of divs that you see here?
#latestest-news
.inline-wrapper
.splitter
- for news in @news
.news style="float: #{cycle('left', 'right')};"
h2
= link_to news.title, news
= news.content.html_safe
.footer
p by Virtum | #{l news.created_at}
br