rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library
rtPublicSession

CSS_DEFAULT

Start searchMail feedback

rtPublicSession


ConsoleOutput
CRLF
CSS_DEFAULT
defaultAttachmentImage
disableConsoleOutput
DocumentContext
HideWhenStatus
HTMLConversion
HTMLListMarkerType
HTMLListMarkerURL
PageWidth
URLCommandMarker
URLFormat
versionInfo



recycleAll

version 1.5

Property Get CSS_DEFAULT As String

There are a number of small differences between how Notes and CSS describe formatting and how Notes and browsers interpret default elements. Two important differences are in paragraph spacing and margins. Notes display unmarked paragraphs with no space between them while browsers add a space before and after.

In order to solve this discrepancy, starting from version 1.5 rtLibSession object has a new property CSS_DEFAULT that returns a piece of CSS that makes browser render paragraph margins in the same way as in Notes. As building a Web page may take conversion of several rich text items or item fragments, hence you should add this CSS only once per page. For example:

rtct.getRichTextItem (doc, ITEM_BODY)

rtct1.getRichTextItem (doc, ITEM_HISTORY)

sHtml = rtLibSession.CSS_DEFAULT + rtct.HTML + {<p>History:</p>} + rtct1.HTML