I have a SQL Server 2008 R2 report where a field is actually text mixed with HTML. I changed the markup type in the placeholder to "HTML - Interpret HTML tags as styles" which renders the HTML. So far so good.
The field value in the database contains <p>
tags, with no css classes or inline styling. From what I understand, the report builer replaces the field with a span containing the text and an embedding div. The paragraph tag itself seems to be replaced with the following inline value margin-top:10pt;padding-bottom:10pt;
inside the div
tag.
For example, if I have the following value in the field: <p>Test</p>
, the html that is generated by the report builder is something like the following:
<div style="margin-top:10pt;padding-bottom:10pt;" class="Aaf7c1ec9914f4f479e0df1a72330c0f3106">
<span class="Aaf7c1ec9914f4f479e0df1a72330c0f3105">Test</span>
</div>
If I remove the paragraph tags in the field so I have just the word Test, I get the following HTML:
<div class="Aaf7c1ec9914f4f479e0df1a72330c0f3106">
<span class="Aaf7c1ec9914f4f479e0df1a72330c0f3105">Test</span>
</div>
I would like to change the inline style value that is added to margin-top:0pt;padding-bottom:0pt;
but I don't know where the report builder gets the default values.
I've searched in the various css files on the report server but they seem to relate to the report manager and toolbars, not the actual report.
Where /how can I change the css values for default paragraph style?