Re: [Rails] element for styling text

3 views
Skip to first unread message

Edsil Basadre

unread,
Dec 24, 2019, 8:10:00 AM12/24/19
to rubyonra...@googlegroups.com
If you want to style  <%= m.content %>,  you need to wrap this in a HTML element then you can apply CSS.

Example:

<p class="clas-here" style="styles-here"><%= m.content %></p>

On Tue, Dec 24, 2019 at 5:17 PM fugee ohu <fuge...@gmail.com> wrote:
I have elements like <%= m.content %> where m stands for message as I iterate through @messages How do I style them since I haven't defined them as any type of element

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0e318fd1-a025-447d-a2b6-9515b48fbada%40googlegroups.com.


--
The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender.
Reply all
Reply to author
Forward
0 new messages