I have text around the image that was placed on the left. But the text goes directly against the border of the image. How do I make some free space around it?
At the moment I have CSS:
.image {
float:left
}
and view:
<% if article.newspic.exists? %>
<div class ="image">
<%= newspic_thumbnail_tag(article) %>
</div>
<% end %>
<%= simple_format(article.body) %><br>
If I add margin-rightto the image, the text just starts from under the image.
source
share