Required Field Validator

S

shapper

Hello,

I added a few Required Field Validators to a page.
When I check the style it shows color:red and display:inline.
I tried to override this with CSS and no luck

Could someone knows how can I remove this default style?

Thanks,
Miguel
 
G

Guest

Miguel,

In order to use Css with validators, you will need to set ForeColor to " " -
then your classes will work just fine.
 
S

shapper

Miguel,

In order to use Css with validators, you will need to set ForeColor to " " -
then your classes will work just fine.

But what about the display: inline?
I really need to change that to display: block.

Is there a way to solve this?

Thanks,
Miguel
 
G

Guest

You could always wrap your validator in div tags:

<div><asp:RequiredFieldValidator ... </div>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top