0

I an a newsletter app, i send a view as a template of mail. Inside the view there a variable that hold the content taken from a form. I try to apply different inline style to the view, but no one worked. This is the view, now there is only one style (color:blue) to test css:

<html>
<body style="color:blue;">

   {{ $content }}

</body>
</html>

How can i do to style this view, and send a mail with the proper css style? Thank you

1 Answer 1

1

You can do styling like this,

<!DOCTYPE html>
<html>
<body>
  <p style="font-style:italic">
    {{ $content }}
  </p>
</body>
</html>

It works for me.

Sign up to request clarification or add additional context in comments.

3 Comments

What you suggest for Hotmail, there is no way at all to style?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.