Own HTML

Igor Khripunov December 1, 2014

Why, when I try to add my own HTML, it added more styles CSS?

For example:

 

I add:

<p>test text</p>

 

but eventually comes to the mailbox:

<p style="margin: 10px 0 0 0">test text</p>

2 answers

0 votes
crf
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 1, 2014

The short answer is "Microsoft Outlook".

Not all mail clients support the use of Cascading Style Sheets.  Atlassian products use a library called BotoCSS (https://bitbucket.org/mryall/botocss) to inline the styles from .css into the HTML elements when rendering an email to make sure that even broken mail clients will be able to render them as closely as possible to how a web browser would, even the broken old ones like Outlook that don't handle .css correctly.

Igor Khripunov December 2, 2014

I can't find Botocss styles in my templates(

0 votes
Peter Bengov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2014

Maybe there are styles you inherit from JIRA / Mail Handlers's templates.

You could try to override the styles with some !Important calls. Didn't test this myself, so not sure it will work.

Igor Khripunov December 2, 2014

I didn't find additional styles in JIRA templates

Suggest an answer

Log in or Sign up to answer