CSS and Field Properties - TAB - HTML

Hello,

I want to set the font size and color as defined in my stylesheet on a form. If I have to use the class name in a field properties of a form, where should I call style in “HTML” or “Class”?

I have developed few applications where I created passthru HTML and notes fields, and called class as defined in stylesheet on a form, and it worked. But in my current application I don’t have that much time to make changes like redesigning form using Pass thru HTML and hence I was wondering if I can use the TAB “HTML” in Field properties?. I want to call class for font color , and size as stylesheet which is on a form.

Any suggestions?

Thanks in advance

MS

Subject: CSS and Field Properties - TAB - HTML

Yes. Under the HTML tab for the field properties you can define the element’s ID, CLASS, or enter in-line CSS in the STYLE field.

Subject: RE: CSS and Field Properties - TAB - HTML

Thanks for your reply. But I am confused, will really appericiate if you can guide me.

I have following stylesheet on a form,

.fieldvalue { font-family:arial; font-size:5pt; color:navy; }

HTML tab of a Field Property has following details,

Id:

Class:

Style:

Title:

Other:

With reply to your answer, “Under the HTML tab for the field properties you can define the element’s ID, CLASS, or enter in-line CSS in the STYLE field”

How to define, element’s ID? and How to use in HTML tab?

How to use CLASS in HTML tab? Is this, Class:“fieldvalue” correct?

What does this mean, “enter in-line CSS in the STYLE field”?

Thanks

MS

Subject: RE: CSS and Field Properties - TAB - HTML

Once you hace defined a Style Sheet simply type in the class or ID name in the appropriate field in the field HTML properties.

If your class is named “fieldvalue” type “fieldvalue” in the class field and it’s attributes will be applied to that field. Likewise, if you are using an ID then type the ID name in the ID field. And the style field can be used to enter in-line CSS that has not been defined in your Style Sheet – like “display:none”.

Also, instead of defining your Style Sheet In-Line in your Database you can insert it as a Style Sheet Resource in the Shared Resources area of your Database – this may make it easier to maintain. Hope this helps.

Subject: RE: CSS and Field Properties - TAB - HTML

Thanks for your reply again. I found the problem, I have fields in a form all are set to “Computed for display” and hence it was not working, but I changed to “Editable” then it picks up the style properly. Any idea why the stylesheet works fine if the field is “Editable” and not for “Computed for display”?

Thanks

MS

Subject: RE: CSS and Field Properties - TAB - HTML

It’s because computed-for-display fields (and any field in read mode) is displayed as simple text. If there is no , or

Subject: RE: CSS and Field Properties - TAB - HTML

Thanks for your reply,

So is this understanding correct that, if I have a field with computed for display settings, then I should do like this,

CDfield

Will you please correct me?

Thanks

MS

Subject: RE: CSS and Field Properties - TAB - HTML

No need to correct you – you’re right. It should probably say something about that on the properties tab. I usually use computed text to do the same thing with editable fields in read mode.