Trotz des falschen Forumplatzes die Antwort:
-------------------------------------------------------------------
THIS WEEK'S DOMINOPOWER TIP
-------------------------------------------------------------------
AVOIDING AN ERROR WHEN USING CASCADING STYLE SHEETS
by Dan Velasco, Senior Technical Editor, (dvelasco@dominopower.com)
This tip is one that I've had to use a lot lately when working with Cascading
Style Sheets (CSS). When using CSS, as you may know, you put the name of the CSS
class you desire on the HTML tab of the properties box of the element you're
working with, be it a field, table, table cell, etc.
The trick here is that this only works when the font style for the element is
set to the default Notes font style, which is 10 point Default Sans Serif. If
you have changed the font style, the size of the text, or a design element and
then try to specify a CSS class for it, you are probably not going to see the
changes you want applied. If this happens, change the font back to 10 point
Default Sans Serif.
-------------------------------------------------------------------
THIS WEEK'S DOMINOPOWER TIP
-------------------------------------------------------------------
APPLYING STYLESHEET STYLES TO NOTES RICH-TEXT FIELDS ON THE WEB
by Dan Velasco, Senior Technical Editor (dvelasco@dominopower.com)
Note: Throughout this tip, I used brackets rather than <> symbols to keep things
from getting garbled by your email program. When using the code below, just be
sure to replace the brackets with the proper symbols.
This tip is about something which perplexed me for many months until I discovered
a solution somewhat by accident. I was trying to apply a stylesheet font to a
rich-text field on a form that was using the default sans serif font. I tried
putting the name of the style in the "Class" field on the HTML properties tab
for the rich-text field, but that didn't work. I then tried putting "[font
class="bodyText"] before the field and [/font] after the field, marking both as
Pass-Thru HTML. The style ended up being applied fine, but the space between the
first and second paragraphs on some documents disappeared.
The solution I came up with at the time, which was somewhat kludgey I'll admit,
was to put " " on the line between the first and second paragraphs and mark
it as Pass-Thru HTML. This solved the problem, but it made a little extra work
for our Production Team. I encountered this problem again recently, but this
time I couldn't modify the contents of the rich-text field because we didn't
"own" the database. I started playing again with the code around the field, and
what I found is that if I put [span class="bodyText"] before the field and
[/span] after the field (marking it as Pass-Thru HTML), the correct style was
applied to the rich-text field (the contents of which were using the default
sans serif font) and the line between the first and second paragraphs didn't
disappear.
Again, please note that the rich-text fields to which I applied the stylesheet
styles used the default 10-point Notes sans serif font. If anyone has any other
interesting experiences with trying to apply stylesheet styles to rich-text
fields, please send me an email at dvelasco@dominopower.com.