I am trying to pass my own CSS to the returned errors.

This is in my cgiapp_init section:

    $self->param('dfv_defaults') ||
        $self->param('dfv_defaults', {
            filters => 'trim',
            msgs => {
                any_errors => 'err__',
                prefix     => 'err_',
                invalid    => '* Invalid',
                missing    => '* Missing',
                format => '<span class="errors">%s</span>',
            },
        });

The <span class="errors"> shows up as does the 'Invalid' or 'Missing' message. However, the CSS is not picking up.

I have this in my site.css file (just to test so nothing fancy yet):

.errors {
    color: red;
}

The html spit out is:

<span class="errors">* Missing</span>

But not in "red". I have wiped my cache as well.

Help appreciated...

Robert


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to