I want to create a span with inline styles for an email:
<span style="display: inline-block; width: 16;"></span>
In my helper I have tried this:
content_tag(:span, style: "display: inline-block; width: 16;")
The words "display: inline-block; width: 16;" are displayed on the screen.
content_tag(:span, nil, style: "display: inline-block; width: 16;")
http://apidock.com/rails/ActionView/Helpers/TagHelper/content_tag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With