Hi,
I am using CSS on a form for one of the web based application. I have set CLASS in HTML tab of the field property. All the fields are “Computed for display” on the form. CSS works fine for fields which are not blank or has values.
But it is not working for fields which are blank.
Any reason why? Is there any fix for that?
Thanks
ASB
Subject: CSS not working for blank fields.
Check again – CSS classes applied to computed fields will not carry over to the web (nor do they apply to editable fields in read mode). You can do a View->Source to confirm that.
You probably have CSS that applies to the container for the field (table cell, or what have you). With no content, the CSS for the container will not apply (especially in IE), but if you put a non-breaking space in the container, you’ll get what you’re after.
Subject: RE: CSS not working for blank fields.
You are correct.
I have CSS that is applied to the container for the field (table cell).
Where should I put a non-breaking space in the container.
Subject: RE: CSS not working for blank fields.
Use the field formula to display " " if there’s no other value.
Subject: RE: CSS not working for blank fields.
Thanks a lot for all your help. It worked.