Problem using CSS in a text field

Hello,

I’ve imported an HTML table with text and links with imbedded CSS, but the CSS (hover, alink, vlink, etc.) is not functioning. I tried adding the CSS in html attributes (programmer’s pane) of the field:

"

a:hover {text-decoration:none;}

a:link {color: #3333FF;}

a:visited {color: #660066;}

a:active {color: #FF0000;}

"

but that is also not working.

I also tried putting the CSS in the field’s properties HTML tags, style section:

a:hover {text-decoration:none;};a:link {color: #3333FF;}; a:visited {color: #660066;}; a:active {color: #FF0000;}

but that is also not working…

The same CSS code is also in the form’s html head content in the programmer’s pane, but unfortunately that code does not affect the field’s html content

Any clues out there?..thanks

Subject: Problem using CSS in a text field

I’m not sure what “imported HTML table with embedded CSS” is, but try defining the cells like “”, or put “class=“anyclass”” as passthru HTML somewhere in your table cells.

HTH,

Simeon

Subject: RE: Problem using CSS in a text field

By this “imported HTML table with embedded CSS” I meant that my CSS style code is within the same html page as the table, it is not an attached or external style sheet…

Subject: RE: Problem using CSS in a text field

And by “imported”, he means inported – that is, the HTML is imported to Notes CD for display in the Notes client, which does not do the :HOVER, :LINK, :ACTIVE and :VISITED pseudo-classes.

Subject: RE: Problem using CSS in a text field

Actually, the html table is imported in the field (field is within a form created with designer) via the Notes client, but ultimately it is viewed through IE not the Notes browser…I know the CSS is not working when I test with Actions–>Preview in Web Browser–>IE…

thanks

Subject: View Source

From the browser did you look at the Source of the open page to see what Domino is actually sending?

Subject: RE: View Source

Thanks…It’s sending the CSS that I set for the form in the programmer’s pane html head atrributes (which works for everything outside the field), and what appears to be CSS in the ‘On Web Access’ (2nd tab) section of the form properties. But the former or latter have no effect on html table in the text field…putting CSS in the html attributes of the field does not work, and embedded CSS in the html code of the table/page does not work either…