Generated objects in the view are stacking incorrectly?

The top item generated is perfectly positioned, but the second and third items directly beneath with no padding in-between. Does ruby on rails automatically override css styling when new items are added to the erb view? Am I forced to use JS library like isotope or masonry?

Thank you.

Attachments: http://www.ruby-forum.com/attachment/11303/failed_image_stack.jpg

Adding padding to the top fixed the issue with the tiles mashing together. But, the second tile is moved over to the left. As if it's a relative to the top tile. Very strange.

LATTER THINGS

The top item generated is perfectly positioned, but the second and third items directly beneath with no padding in-between. Does ruby on rails automatically override css styling when new items are added to the erb view? Am I forced to use JS library like isotope or masonry?

Rails does not do any styling for you, you have to do your own CSS to make it look how you like. The fact that the page is generated by rails is irrelevant.

Colin

Colin Law wrote in post #1182302: